+++ /dev/null
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-sockets = [];
-window.WebSocket = function(url) {
- sockets.push(this);
- window.setTimeout(function() {
- sockets.map(function(s) {
- s.onopen();
- });
- sockets.splice(0);
- }, 1);
-}
-
-window.WebSocket.prototype.send = function(msg) {
- // Uncomment for debugging:
- // console.log("fake WebSocket: send: "+msg);
-}