Glossary: Real-Time Apps with WebSockets
Middleware
Also written: io.use
A function that runs before a connection or request is handled and can refuse it. Socket.IO middleware checks the token once, before `"connection"` fires.
Glossary: Real-Time Apps with WebSockets
Also written: io.use
A function that runs before a connection or request is handled and can refuse it. Socket.IO middleware checks the token once, before `"connection"` fires.