1 if ENV['ARVADOS_WEBSOCKETS']
2 Server::Application.configure do
3 Rails.logger.error "Built-in websocket server is disabled. See note (2017-03-23, e8cc0d7) at https://dev.arvados.org/projects/arvados/wiki/Upgrading_to_master"
12 ws.send(SafeJSON.dump({status: 501, message: "Server misconfigured? see http://doc.arvados.org/install/install-ws.html"}))
21 config.middleware.insert_after(ArvadosApiToken, RackSocket, {
22 handler: EventBusRemoved,
24 websocket_only: (ENV['ARVADOS_WEBSOCKETS'] == "ws-only")