switching socket.io to a dependency