How to use the ws.__initialize function in ws

To help you get started, we’ve selected a few ws examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github logv / snorkel / snorkel / node_modules / superfluous / node_modules / primus.io / node_modules / primus / transformers / engine.io / library.js View on Github external
function init () {
    // Only start downloading the swf file when the checked that this browser
    // actually supports it
    if (!FlashWS.loaded) {
      if (843 != self.policyPort) {
        WebSocket.loadFlashPolicyFile('xmlsocket://' + self.hostname + ':' + self.policyPort);
      }

      WebSocket.__initialize();
      FlashWS.loaded = true;
    }

    fn.call(self);
  }
github Ezelia / eureca.io / lib / js / primus.js View on Github external
function init () {
    // only start downloading the swf file when
    // we checked that this browser actually supports it
    if (!FlashWS.loaded) {
      if (843 != self.policyPort) {
        var policy = 'xmlsocket://' + self.hostname + ':' + self.policyPort;
        WebSocket.loadFlashPolicyFile(policy);
      }

      WebSocket.__initialize();
      FlashWS.loaded = true;
    }

    fn.call(self);
  }

ws

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

MIT
Latest version published 6 months ago

Package Health Score

89 / 100
Full package analysis