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

ws,server: fix server crash #380

Closed belochub closed 5 years ago

belochub commented 5 years ago

Fix server crash when metarhia-jstp is not in the list of the requested protocols.

aqrln commented 5 years ago

I added a regression test, PTAL.

belochub commented 5 years ago

@aqrln, LGTM.

belochub commented 5 years ago

Landed in https://github.com/metarhia/jstp/commit/9c7aa239627b7f0faf1f0b21668ab479733ac373 and https://github.com/metarhia/jstp/commit/2d0f805b861819206ec0fc745ff64994fbb2f1d2.