Making MockIoSocket closer to the real socket.io Socket.