Update socket.io invocation