koa-socket-2
koa-socket-2 copied to clipboard
Socket.IO for Koa
Please provide support for CORS errors !!
Socket IO V4 is here: https://socket.io/blog/socket-io-4-release/ Any plans to upgrade the dependency? Thanks!
``` io.on('connection', async (ctx: any, data: any) => { console.log(`client has connected...`); ctx.socket.join('some_room'); console.log('ROOMS:::' + ctx.socket.rooms); }) ``` why? Everything else working...
After switching to koa-socket-2, I don't think I have any way to set up CORS as I cannot `io.set('origins', options.frontEnd);` with `const io = new IO();` app.io, app._io are also...
Hi! I'm try to use koa-socket-2 in my project with middleware. I took an example from docs and it doesn't work for me. Here is example of my code: ```...
I want to get created io from other file. socket.js ``` const IO = require( 'koa-socket-2' ); const io = new IO(); module.exports = { io } ``` File where...