Skip to content

Commit

Permalink
Upgrade socket.io server & redis dependencies (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles authored Oct 11, 2024
1 parent a8ea8d2 commit bccc591
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 224 deletions.
8 changes: 6 additions & 2 deletions core/api/socket/socket.controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = function SocketController(logger, socketModel, io, instanceModel) {
async function connection(socket) {
logger.info(`New socket joined, socket_id = ${socket.id}, version = ${socket.conn.protocol}`);
logger.info(
`New socket joined, socket_id = ${socket.id}, version = ${socket.conn.protocol}, recovered = ${socket.recovered}`,
);

let isClientAuthenticated = false;

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

isClientAuthenticated = true;

logger.info(`User ${user.id} connected in websockets, socket version = ${socket.conn.protocol}`);
logger.info(
`User ${user.id} connected in websockets, socket_id = ${socket.id}, socket version = ${socket.conn.protocol}`,
);

// we answer the client that he is authenticated
fn({ authenticated: true });
Expand Down
Loading

0 comments on commit bccc591

Please sign in to comment.