From 3076b9346b299c65db58300e6682b2905921632e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 12 Mar 2024 11:58:26 -0400 Subject: [PATCH] update URLS --- server.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index f44eb09..f5ef37d 100644 --- a/server.js +++ b/server.js @@ -16,13 +16,18 @@ const io = new Server(server, { origin: ['http://localhost:3000', 'http://localhost:3040', 'http://10.0.0.248:3000', + 'https://10.0.0.248:3000', 'http://localhost:9082/', + 'http://localhost:9083/', 'https://dev-users.wrenchboard.com/', 'https://users.wrenchboard.com/', + 'https://www.wrenchboard.com/', + 'https://www.wrenchboard.ng/', + 'https://dev-www.wrenchboard.com/', 'http://76.209.103.227:30040', 'http://socket-dev.wrenchboard.com', 'https://socket-dev.wrenchboard.com', - 'http://socket.wrenchboard.com', + 'https://socket.wrenchboard.com', '*','*:*'], methods: ["GET", "POST"], }, @@ -40,6 +45,11 @@ io.on("connection", (socket) => { socket.on("send_message", (data) => { socket.to(data.room).emit("receive_message", data); }); + + socket.on("send_market", (data) => { + socket.to(data.room).emit("receive_market", data); + }); + }); server.listen(port, () => {