update URLS
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user