https://github.com/insthync/colyseus-webrtc-signaling
Use Colyseus as a WebRTC signaling
https://github.com/insthync/colyseus-webrtc-signaling
Last synced: about 2 months ago
JSON representation
Use Colyseus as a WebRTC signaling
- Host: GitHub
- URL: https://github.com/insthync/colyseus-webrtc-signaling
- Owner: insthync
- License: mit
- Created: 2023-01-02T05:40:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T20:48:22.000Z (over 3 years ago)
- Last Synced: 2025-12-30T13:01:08.186Z (6 months ago)
- Language: TypeScript
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to Colyseus!
This project has been created using [⚔️ `create-colyseus-app`](https://github.com/colyseus/create-colyseus-app/) - an npm init template for kick starting a Colyseus project in TypeScript.
[Documentation](http://docs.colyseus.io/)
## :crossed_swords: Usage
```
npm start
```
## Structure
- `index.ts`: main entry point, register an empty room handler and attach [`@colyseus/monitor`](https://github.com/colyseus/colyseus-monitor)
- `src/rooms/MyRoom.ts`: an empty room handler for you to implement your logic
- `src/rooms/schema/MyRoomState.ts`: an empty schema used on your room's state.
- `loadtest/example.ts`: scriptable client for the loadtest tool (see `npm run loadtest`)
- `package.json`:
- `scripts`:
- `npm start`: runs `ts-node-dev index.ts`
- `npm test`: runs mocha test suite
- `npm run loadtest`: runs the [`@colyseus/loadtest`](https://github.com/colyseus/colyseus-loadtest/) tool for testing the connection, using the `loadtest/example.ts` script.
- `tsconfig.json`: TypeScript configuration file
## License
MIT