protocols.indexOf('binary') >= 0
error
#30
Labels
duplicate
This issue or pull request already exists
protocols.indexOf('binary') >= 0
error
#30
websockify passes a bad argument to
WebSocketServer
. WebSocketServer'shandleProtocols
parameter is a function of type(protocols: Set<string>, request: IncomingMessage) => string | false
. However you use the array methodindexOf
onprotocols
, and treat the second argument as a callback.This causes websockify to crash immediately when a client connects.
The text was updated successfully, but these errors were encountered: