kudos/koa-websocket

Storing Connections?

Opened this issue · 3 comments

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

I've also tried doing, websocket.on('connection/open', (open)=>{...}) and still haven't had any luck.

Any suggestions on how to approach storing the (websocket) client information when the websocket connection opens?

I'm also having the same issue. Is this package still supported?

i also having the same issue.i see the events include the open,close,message....etc.message,close can work,but open doesn't work.
image

i also having the same issue.i see the events include the open,close,message....etc.message,close can work,but open doesn't work.
image

although open doesn't work .can write like below image make the open work.
image