Skip to content
Snippets Groups Projects
Select Git revision
  • 641704b5a0941adeb69a2eefcd217cf4d84802f3
  • master default protected
  • 1.31
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
  • 4.32.0
  • 4.31.0
  • 4.30.1
  • 4.30.0
  • 4.29.1
  • 4.29.0
  • 4.28.0
  • 4.27.0
  • 4.26.0
  • 4.25.5
  • 4.25.4
  • 4.25.3
  • 4.25.2
  • 4.25.1
23 results

Monster.Text.Formatter.html

Blame
  • websocket.mjs 573 B
    import {getGlobal} from "../../../application/source/types/global.mjs";
    
    function initWebSocket() {
        if (typeof window === "object" && window['WebSocket']) return Promise.resolve();
    
        return import("ws").then((ws) => {
            getGlobal().WebSocket = class extends ws['WebSocket'] {
                constructor(url, protocols) {
                    super(url, protocols, {
                        handshakeTimeout: 1000,
                        maxPayload: 1024 * 1024 * 1024,
                    });
                    
                }
            };
            
        });
    
    
    }
    
    export {initWebSocket}