update servers
This commit is contained in:
parent
1a4d4b8dbc
commit
e19d4ee2db
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ const uint16_t backend_port = 3000;
|
||||||
|
|
||||||
#elif defined(PROD_MODE)
|
#elif defined(PROD_MODE)
|
||||||
// PROD
|
// PROD
|
||||||
const char *ws_server = "elatoai.akdeb.deno.net";
|
const char *ws_server = "elato-dash.deno.dev";
|
||||||
const uint16_t ws_port = 443;
|
const uint16_t ws_port = 443;
|
||||||
const char *ws_path = "/";
|
const char *ws_path = "/";
|
||||||
// Backend server details
|
// Backend server details
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const wss: _WebSocketServer = new WebSocketServer({ noServer: true,
|
||||||
|
|
||||||
wss.on('headers', (headers, req) => {
|
wss.on('headers', (headers, req) => {
|
||||||
// You should NOT see any "Sec-WebSocket-Extensions" here
|
// You should NOT see any "Sec-WebSocket-Extensions" here
|
||||||
console.log('WS response headers:', headers);
|
console.log('WS response headers :', headers);
|
||||||
});
|
});
|
||||||
|
|
||||||
wss.on("connection", async (ws: WSWebSocket, payload: IPayload) => {
|
wss.on("connection", async (ws: WSWebSocket, payload: IPayload) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue