Skip to content

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.

Where the book teaches it

Related terms

Handshake