Skip to content

Commit

Permalink
use uwebsockets
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed May 11, 2024
1 parent 742390e commit 06b7825
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
25 changes: 22 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@
"homepage": "https://github.com/colyseus/webgame-template#readme",
"devDependencies": {
"@colyseus/cloud": "^1.0.11"
},
"dependencies": {
"@colyseus/uwebsockets-transport": "^0.15.6"
}
}
2 changes: 2 additions & 0 deletions packages/backend/src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ import "./config/auth";
import { MyRoom } from "./rooms/MyRoom";
import { db, MonthlyScore } from "./config/database";
import { createUser } from "./config/auth";
import { uWebSocketsTransport } from "@colyseus/uwebsockets-transport";

export default config({
initializeTransport: (options) => new uWebSocketsTransport(),

initializeGameServer: (gameServer) => {
/**
Expand Down

0 comments on commit 06b7825

Please sign in to comment.