koa-websocket icon indicating copy to clipboard operation
koa-websocket copied to clipboard

Light wrapper around Koa providing a websocket middleware handler that is koa-route compatible.

Results 30 koa-websocket issues
Sort by recently updated
recently updated
newest added

Hi, I'm trying to differentiate between the clients and having a bit of an issue. The method `.onopen` doesn't really provide the necessary callbacks in the parameters to store the...

I'm trying to do a basic auth middleware that would prevent upgrading the HTTP request if there is some missing token in headers. Right now this library "Swallows" all the...

Hi, I can't find any code in sources nor attribute in ctx.websocket object when logging it in the console related to room management, how to broadcast messages to listed sockets...

``` const httpsOptions = { key: fs.readFileSync('keys/server.key'), cert: fs.readFileSync('keys/server.crt'), }; const app = websockify(new Koa(), { port: WS_PORT }, httpsOptions); ``` and if i connect to WS_PORT from WebSocket client...

I cant using broadcast API from here. Any one know how to use brodcast to send message to all clients connected ?

It seems like the `connection` event is not exposed, I can't access it. For example, I want to do: ``` ctx.websocket.on('connection', function(ws, req){ console.log("connected"); )} ``` but this doesn't seem...

How would you properly close a websocket connection? Basically what I am trying to do is check if correct query string parameters are not present then I close the connection....

Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.29.4 to 7.31.8. Release notes Sourced from eslint-plugin-react's releases. v7.31.8 Fixed [no-unknown-property]: add viewBox on marker (#3416[] @​ljharb) [no-unknown-property]: add noModule on script (#3414[] @​ljharb) [no-unknown-property]: allow...

dependencies

Bumps [eslint](https://github.com/eslint/eslint) from 8.13.0 to 8.23.1. Release notes Sourced from eslint's releases. v8.23.1 Bug Fixes b719893 fix: Upgrade eslintrc to stop redefining plugins (#16297) (Brandon Mills) 734b54e fix: improve autofix...

dependencies

Bumps [eslint](https://github.com/eslint/eslint) from 8.13.0 to 8.35.0. Release notes Sourced from eslint's releases. v8.35.0 Features 8e34a04 feat: add afterHashbangComment option to lines-around-comment rule (#16920) (SUZUKI Sosuke) c8c0c71 feat: Move all and...

dependencies