New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@rivet-gg/plugin-colyseus-javascript

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rivet-gg/plugin-colyseus-javascript

JavaScript plugin for Rivet + Colyseus

latest
Source
npmnpm
Version
0.14.4
Version published
Maintainers
2
Created
Source

Colyseus Rivet Plugin



Discussion forum

Multiplayer SDK for JavaScript/TypeScript.
View documentation

Server Plugin

First install the Colyseus Rivet plugin for your Colyseus server. (It's compatible with the old Colyseus Arena API.)

Example Code

Examples of using the Colyseus JavaScript plugin with Rivet are available here.

WIP Notice

This library is an MVP to run a scalable Colyseus game on top of Rivet.

Room IDs

We intend to integrate deeper room integration to better replicate the Arena-style room placement.

Creating Lobbies

Rivet does not allow you to create a lobby at the moment. You must use joinOrCreate or joinById.

Room options on matchmaker

The matchmaker only uses the room name and room ID to filter lobbies. Room options cannot be used to filter lobbies at the moment.

Lobby reconnection

Lobby reconnection is not supported yet.

Removed auth support

Support for Colyseus social was deprecated, so we removed it in this library. If you are looking for an alternative, check out Rivet Identities.

Fork Versioning

This library will match the minor version (i.e. MAJOR.MINOR.PATCH) of the master branch.

Running Test Client

The test server is used for manual testing for development. For more comprehensive examples, check out the Colyseus examples repo.

Project setup

Running

  • Run the test server here
  • Build the client: yarn run build
  • Serve the client: yarn run serve-test
  • Visit http://localhost:8080
  • When prompted for a token, paste the token logged by the test server

Browser Support

License

MIT

Keywords

rivet

FAQs

Package last updated on 05 Mar 2024

Related posts