1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 if ENV['ARVADOS_WEBSOCKETS']
6 Server::Application.configure do
7 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"
16 ws.send(SafeJSON.dump({status: 501, message: "Server misconfigured? see http://doc.arvados.org/install/install-ws.html"}))
25 config.middleware.insert_after(ArvadosApiToken, RackSocket, {
26 handler: EventBusRemoved,
28 websocket_only: (ENV['ARVADOS_WEBSOCKETS'] == "ws-only")