metarhia / jstp

Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
https://metarhia.github.io/jstp
Other
142 stars 10 forks source link

conn: return error when handshake is not received #387

Closed belochub closed 5 years ago

belochub commented 5 years ago

Return error from Connection#handshake() method when connection is closed before handshake response is received. Also, make this method's callback argument mandatory.

This depends on https://github.com/metarhia/jstp/pull/386 and https://github.com/metarhia/jstp/pull/389

belochub commented 5 years ago

Landed in https://github.com/metarhia/jstp/commit/4caa511751e94fe0bf9dcc272a3dd4fdfac6d198.