I have written some code but it seems to be causing errors.
const colyseus = require("colyseus");
const http = require("http");
const express = require("express");
const port = process.env.port || 3000;
const app = express();
app.use(express.json());
const demoServer = new colyseus.Server({
server: http.createServer(app),
});
demoServer.listen(port);
I am encountering the following error:
DEPRECATION WARNING: 'pingInterval', 'pingMaxRetries', 'server', and 'verifyClient' Server options will be permanently moved to WebSocketTransport on v0.15
new Server({
transport: new WebSocketTransport({
pingInterval: ...,
pingMaxRetries: ...,
server: ...,
verifyClient: ...
})
})