Socket.io initial implementation