We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
const Koa = require('koa'); const IO = require('koa-socket-2'); const appSock = new Koa(); const cpIo = new IO({ namespace: 'cp-clients', }); cpIo.attach(appSock); cpIo.use(async (ctx, next) => { console.log('midleware 1'); await next(); console.log('midleware 2'); }); appSock.listen(3333, () => { console.log('Sockets starts at localhost:3333'); })
All code work well but middleware don't fired when new message is received. What is wrong with it?
The text was updated successfully, but these errors were encountered:
You should try to look at #14. I think this is a duplicate.
Sorry, something went wrong.
No branches or pull requests
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:
All code work well but middleware don't fired when new message is received.
What is wrong with it?
The text was updated successfully, but these errors were encountered: