Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. duong2179
D

duong2179

@duong2179

Chat Follow Unfollow
0
Reputation
8
Posts
594
Profile views
0
Followers
0
Following
Joined 15 Aug 2022, 08:23 Last Online 30 Aug 2022, 16:06

  • Profile
  • More
    • Continue chat with duong2179
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
duong2179 Follow

Posts made by duong2179

RE: How to enable the monitor module while using uwebsockets-express? (Resolved)

@COCO My bad. I recreated the transport as pointed out by Endel here https://github.com/colyseus/uWebSockets-express/issues/19

posted in Questions & Help • 24 Aug 2022, 16:28
RE: How to enable the monitor module while using uwebsockets-express? (Resolved)

@COCO Tried, but it made no difference, unfortunately. I think the problem comes from how / syntax that I put the auth and monitor() in use with the app instance.

posted in Questions & Help • 24 Aug 2022, 15:07
RE: How to enable the monitor module while using uwebsockets-express? (Resolved)

@COCO Here is the dependencies:

  "dependencies": {
    "@colyseus/core": "^0.14.29",
    "@colyseus/monitor": "^0.14.22",
    "@colyseus/schema": "^1.0.34",
    "@colyseus/uwebsockets-transport": "^0.14.29",
    "uwebsockets-express": "^1.2.2",
    ...
posted in Questions & Help • 24 Aug 2022, 07:51
How to enable the monitor module while using uwebsockets-express? (Resolved)

I followed alternative-express-compatibility-layer to employ uWebSockets.js in my colyseus server. I wanted to enable the monitoring module by the following code snippet but failed:

const uwsTransport = new uWebSocketsTransport({});
const app = expressify(uwsTransport.app);

app.use(cors());
app.use(express.json());

const auth = basicAuth.default({
  users: {
    someuser: "somepassword",
  },
  challenge: true,
});
app.use(auth);

app.use("/colyseus", monitor());

const gameServer = new Server({
  transport: new uWebSocketsTransport({
  }),
});
posted in Questions & Help • 24 Aug 2022, 06:11
RE: Is there a case that client fails to send messages to server but still receives patches from server for a while?

@COCO Thank you. But I am asking about pinging from client to server...

posted in Questions & Help • 16 Aug 2022, 10:51
RE: Is there a case that client fails to send messages to server but still receives patches from server for a while?

Do you all maybe know if a Colyseus client can ping the server?

posted in Questions & Help • 16 Aug 2022, 03:02
RE: Is there a case that client fails to send messages to server but still receives patches from server for a while?

@coco No error logs on both sides, unfortunately.

posted in Questions & Help • 15 Aug 2022, 14:56
Is there a case that client fails to send messages to server but still receives patches from server for a while?

We use the Colyseus (0.14) client for Unity and have run into an issue: Player A seems to fail to send messages to the server so that other players cannot see him move. But interestingly, he still can see other players move around. This persists for about 1 minute before onLeave() is triggered on him.

posted in Questions & Help • 15 Aug 2022, 08:41

© 2023 Endel Dreyer