Files
socket.io/examples/express-session-example
Damien Arrachequesne d744fda772 docs: improve example with express-session
The example is now available with different syntaxes:

- CommonJS
- ES modules
- TypeScript

Related: https://github.com/socketio/socket.io/pull/4787
2023-09-13 15:56:15 +02:00
..

Example with express-session

This example shows how to share a session context between Express and Socket.IO:

Video of the example

Please read the related guide: https://socket.io/how-to/use-with-express-session

How to use

$ npm install
$ npm start

And point your browser to http://localhost:3000. Optionally, specify a port by supplying the PORT env variable.