hapi-plugin-websocket icon indicating copy to clipboard operation
hapi-plugin-websocket copied to clipboard

Initial messages may be lost

Open joshkel opened this issue 3 years ago • 0 comments

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.

joshkel avatar Apr 26 '22 14:04 joshkel