npm / @colyseus/ws-transport
@colyseus/ws-transport
What changed in @colyseus/ws-transport 0.17 to 0.18, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@colyseus/ws-transport 0.185 changes
New APIs and options 3
Supported with @colyseus/core 0.18.28, this option sends a tick's messages to each client in one write instead of one write per message.
Supported with @colyseus/core 0.18.28, this API sends a tick's messages to each client in one write instead of one write per message.
Called before the WebSocket handshake with the incoming Request and the same read-only context onAuth() receives. Return a Response to answer the request instead of upgrading it. Requires @colyseus/core 0.18.5.
Fixes and other changes 2
npm and pnpm now install express with this package, preventing startup crashes when express was not already installed.
require() now resolves to the same ESM build as import, preventing processes that use both from loading two copies.
@colyseus/ws-transport 0.173 changes
Fixes and other changes 3
In devMode, use this close code when a reconnection token is present but the seat hasn't been reserved yet, allowing the SDK to retry during the brief HMR reload window.
Adds a defensive check when enqueuing messages after a client has already joined.
Messages sent during onReconnect() are enqueued so they arrive after the client completes the reconnection handshake.