Mentions légales du service

Skip to content
Snippets Groups Projects

Release v1.2.2

Merged Ilyas Toumlilt requested to merge dev into master
4 files
+ 17
2
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
1
@@ -199,7 +199,10 @@ app.listen(4000, "0.0.0.0");
@@ -199,7 +199,10 @@ app.listen(4000, "0.0.0.0");
const server = http.createServer(app);
const server = http.createServer(app);
//initialize the WebSocket server instance
//initialize the WebSocket server instance
const wss = new WebSocket.Server({ server });
const wss = new WebSocket.Server({
 
server: server,
 
path: process.env.WS_PATH || "/",
 
});
wss.on("connection", (ws: WebSocket) => {
wss.on("connection", (ws: WebSocket) => {
ws.on("message", (message: string) => {
ws.on("message", (message: string) => {
Loading