hapi-plugin-websocket
hapi-plugin-websocket copied to clipboard
Initial messages may be lost
The use of await when handling the "initially" WebSocket message may cause incoming messages to be lost. Event handlers like ws.on('message', ...) may not get installed until after the asynchronous method completes, so any WebSocket events during that time period aren't handled.