mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 06:58:02 -05:00
The example is now available with different syntaxes: - CommonJS - ES modules - TypeScript Related: https://github.com/socketio/socket.io/pull/4787
Example with express-session
This example shows how to share a session context between Express and Socket.IO:
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.
