chore: release packages (#371)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-12-28 13:32:44 +08:00
committed by GitHub
parent 18df9d1cda
commit 9f3f9a547a
3 changed files with 15 additions and 14 deletions

View File

@@ -1,13 +0,0 @@
---
"@esengine/server": patch
---
fix: allow define() to be called before start()
Previously, calling `server.define()` before `server.start()` would throw an error because `roomManager` was initialized inside `start()`. This fix moves the `roomManager` initialization to `createServer()`, allowing the expected usage pattern:
```typescript
const server = await createServer({ port: 3000 })
server.define('world', WorldRoom) // Now works correctly
await server.start()
```