chore: release packages (#371)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
18df9d1cda
commit
9f3f9a547a
@@ -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()
|
||||
```
|
||||
Reference in New Issue
Block a user