created WebSocketHandler. Tested in and out communication way