Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldhanekaa committed Jun 23, 2021
1 parent 67d3285 commit e0d2ae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/db/arduinoSockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class arduinoSocketsClass {
if (socket.subscribe.realtimedata.includes(String(sensorId))) {
console.log('socket.socketId', socket.socketId);
req.io
.of('/arduino')
.of('/websocket/arduino')
.to(socket.socketId)
.emit('arduino.sensor.realtimedata', {
sensorId: sensorId,
Expand All @@ -72,7 +72,7 @@ class arduinoSocketsClass {
if (socket.subscribe.realtimeData.includes(String(sensorId))) {
console.log('socket.socketId', socket.socketId);
req.io
.of('/arduino')
.of('/websocket/arduino')
.to(socket.socketId)
.emit('arduino.sensor.realtimeData', {
sensorId: sensorId,
Expand Down
4 changes: 2 additions & 2 deletions src/socket/arduino/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function ArduinoSocket(req: Request, socketGlobal: Socket) {
);

req.io
.of('/arduino')
.of('/websocket/arduino')
.to(socketGlobal.id)
.emit('arduino.sensor.realtimeData', {
sensorId: sensorId,
Expand Down Expand Up @@ -85,7 +85,7 @@ export default function ArduinoSocket(req: Request, socketGlobal: Socket) {
const realtimedata = sensor?.data[sensor?.data.length - 1];
// console.log('realtimedata', realtimedata);
req.io
.of('/arduino')
.of('/websocket/arduino')
.to(socketGlobal.id)
.emit('arduino.sensor.realtimedata', {
sensorId: sensorId,
Expand Down

0 comments on commit e0d2ae0

Please sign in to comment.