# What changed in @colyseus/ws-transport

> 8 changes in @colyseus/ws-transport 0.17 to 0.18 from its official release notes, upgrade guides and advisories: 3 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@colyseus/ws-transport/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @colyseus/ws-transport 0.18

### New APIs and options

- 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. (0.18.5) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.18.5)
- 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. (0.18.5) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.18.5)
- 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. (0.18.2) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.18.2)

### Fixes and other changes

- npm and pnpm now install express with this package, preventing startup crashes when express was not already installed. (0.18.4) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.18.4)
- require() now resolves to the same ESM build as import, preventing processes that use both from loading two copies. (0.18.3) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.18.3)

## @colyseus/ws-transport 0.17

### Fixes and other changes

- 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. (0.17.13) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.17.13)
- Adds a defensive check when enqueuing messages after a client has already joined. (0.17.11) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.17.11)
- Messages sent during onReconnect() are enqueued so they arrive after the client completes the reconnection handshake. (0.17.10) — [release notes](https://github.com/colyseus/colyseus/releases/tag/%40colyseus/ws-transport%400.17.10)
