Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
colyseus-events
Advanced tools
generate notification events from colyseus state. forked from https://github.com/amir-arad/colyseus-mobx
Due to breaking API changes in Colyseus, this version only supports Colyseus 0.14 and above (@colyseus/schema >= 1.0.2)
The schema types new to Colyseus 0.14 (CollectionSchema
and SetSchema
) are not yet supported. please open an issue if you would like to use them.
npm install colyseus-events --save
Import wireEvents
and call it once when connecting to a room on the client side,
import { wireEvents } from 'colyseus-events';
const room: Room<GameState> = await client.joinOrCreate("game");
const events = wireEvents(room.state, new EventEmitter());
then you can wire listeners to events
and start triggering them.
to install a development environment, you need to have node.js git installd.
Then, git clone
this repo locally and run:
$ npm install
$ npm test
and that's it, you've just installed the development environment!
This project is written with VSCode in mind. specifically configured for these extensions: dbaeumer.vscode-eslint, esbenp.prettier-vscode.
npm run test
execute all tests.
npm run clean
Removes any built code and any built executables.
npm run build
Cleans, then builds the library.
Your built code will be in the ./dist/
directory.
FAQs
generate notification events from colyseus state
We found that colyseus-events demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.