working with websocket-rails 4, code cleanup