added emit function to socket.io test