Skip to content

0.15.8

Compare
Choose a tag to compare
@endel endel released this 12 Sep 15:40
· 185 commits to master since this release

Bun support

Bun support is experimental, please report any issues you may find!

# Create a new Colyseus project
bunx create-colyseus-app@latest ./my-server

# Enter the project directory
cd my-server

# Install Bun transport & Run the server
bun add @colyseus/bun-websockets
bun run src/index.ts

(Bun is a new JavaScript runtime that is fast and aims to replace Node.js.)

Breaking change for @colyseus/proxy

In order to support bun, the internal-ip module has been removed from the core.

If you are still using version 0.15 + @colyseus/proxy, you should use the following code to continue using the proxy:

npm install --save internal-ip
import ip from 'internal-ip';
// ...
process.env.SELF_HOSTNAME = await ip.v4();

(Since 0.15, the usage of the proxy is not recommended anymore)