Sending input in text field through WebSocket on pressing enter.