https://github.com/endel/colyseus-express-session
Demonstration on how to use `express-session` along with `onAuth()` in Colyseus
https://github.com/endel/colyseus-express-session
colyseus express-session
Last synced: 2 months ago
JSON representation
Demonstration on how to use `express-session` along with `onAuth()` in Colyseus
- Host: GitHub
- URL: https://github.com/endel/colyseus-express-session
- Owner: endel
- License: mit
- Created: 2020-03-07T02:01:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-07T11:34:15.000Z (over 5 years ago)
- Last Synced: 2025-02-12T06:21:17.900Z (4 months ago)
- Topics: colyseus, express-session
- Language: TypeScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `colyseus` + `express-session`
Demonstration on how to use `express-session` along with `onAuth()` in Colyseus.
See implementation on:
- `index.ts`
- `MyRoom.ts` (`onAuth` method)## Running it locally
```
npm install
npm start
```- Go to [`http://localhost:2567/set?x=y`](http://localhost:2567/set?first_field=1&second_field=2&third_field=3) to set dummy session values
- Go to [`http://localhost:2567/`](http://localhost:2567/) to connect to `MyRoom`## License
MIT