Skip to content

Commit bccc591

Browse files
Upgrade socket.io server & redis dependencies (#167)
1 parent a8ea8d2 commit bccc591

File tree

3 files changed

+309
-224
lines changed

3 files changed

+309
-224
lines changed

core/api/socket/socket.controller.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports = function SocketController(logger, socketModel, io, instanceModel) {
22
async function connection(socket) {
3-
logger.info(`New socket joined, socket_id = ${socket.id}, version = ${socket.conn.protocol}`);
3+
logger.info(
4+
`New socket joined, socket_id = ${socket.id}, version = ${socket.conn.protocol}, recovered = ${socket.recovered}`,
5+
);
46

57
let isClientAuthenticated = false;
68

@@ -34,7 +36,9 @@ module.exports = function SocketController(logger, socketModel, io, instanceMode
3436

3537
isClientAuthenticated = true;
3638

37-
logger.info(`User ${user.id} connected in websockets, socket version = ${socket.conn.protocol}`);
39+
logger.info(
40+
`User ${user.id} connected in websockets, socket_id = ${socket.id}, socket version = ${socket.conn.protocol}`,
41+
);
3842

3943
// we answer the client that he is authenticated
4044
fn({ authenticated: true });

0 commit comments

Comments
 (0)