Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DelxHQ committed Mar 7, 2023
2 parents badf5b5 + 2baf563 commit fee237f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const io = require('socket.io')(app, {
const port = process.env.PORT || 9091

io.on('connection', (socket) => {
socket.on('ping', clientTimestamp => {
socket.emit('pong', clientTimestamp)
socket.on('rping', (clientTimestamp) => {
socket.emit('rpong', clientTimestamp)
console.log(`[PING] WS ping from ${socket.handshake.address}`)
})
})
Expand Down

0 comments on commit fee237f

Please sign in to comment.