refactor to use websocket-eventmachine-client