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

HAPI plugin for seamless WebSocket integration

Results 9 hapi-plugin-websocket issues
Sort by recently updated
recently updated
newest added

I'm looking for a way to access shared server state from hapi-plugin-websocket's lower-level event handlers (`connect`, `disconnect`, and `error`). For a normal request, I could access this via `request.server.app`, but...

Events such as connect/disconnect/error were typed as accepting full PluginState objects, but the `mode` property was missing. The `Request.websocket()` method was typed as always returning a `'websocket'` mode object, but...

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...

I wanted to see if I could set up Hapi to cleanly shut down all WebSocket connections when the server shuts down. hapi-plugin-websocket's behavior is confusing here; the source code...

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...

`hapi` is an HTTP server implementation. `hapi-plugin-websocket` tries to implement WebSocket support over this implementation. In regarding to auth, the current heuristics doesn't follow WebSocket practices. A native WebSocket server...

Working fine for content type application/json, but when passing application/xml giving following error: {"statusCode":415,"error":"Unsupported Media Type","message":"Unsupported Media Type"} Code used: ``` server.route({ method: "POST", path: "/bar", config: { auth:false, payload:...

Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.17.1. Release notes Sourced from ws's releases. 8.17.1 Bug fixes Fixed a DoS vulnerability (#2231). A request with a number of headers exceeding the[server.maxHeadersCount][] threshold...

dependencies

Is it possible to declare dependencies with the ^ dependency range char? If it's ok, I eager to make a PR. Thank you for your work!