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

Sugar for connecting socket.io to a koa instance

Results 19 koa-socket issues
Sort by recently updated
recently updated
newest added

it told me cannot connect

if use your version, need uws, that is deprecated and not in npm i install latest socket io, "socket.io": "^2.1.1", and now all works good. Please, check it.

where it says (under middlewares): ~~~js io.use( async ( ctx, next ) { console.log( 'Upstream' ) await next() console.log( 'Downstream' ) }) ~~~ it should be ~~~js ( ctx, next...

As was mentioned in one of issues there's no support for HTTPS connection in created socket. I added configuration object for attach method that can accept paths to **cert** and...

There is a broadcast method to send messages to all connected users...what if i want people to chat privately? How can i implement that?

it can be use in socket.io but i not found any way to use in koa-socket

I'm trying to integrate socket.io into existing routes/middleware but when doing ctx.socket.emit from the standard Koa middleware, the client does not receive the message. I must also say that ctx.socket.id...

in chrome brower , I use : ` ``` var g = new WebSocket("ws://localhost:3000"); VM309:1 Refused to connect to 'ws://localhost:3000/' because it violates the following Content Security Policy directive: "connect-src...

please add the 'ioOptions' to the doc, i just find the code in the doc. it waste my little time to find the option.

I have recently implemented (koa-sslify)[https://github.com/turboMaCk/koa-sslify] which requires the use of `https.createServer` instead of `app.listen` in order to pass SSL options to the server. I can't find any example of how...