How to use the ws.__addTask 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
FlashWS.prototype.write = function() {
  var self = this, args = arguments;
  WebSocket.__addTask(function () {
    WS.prototype.write.apply(self, args);
  });
};
github Ezelia / eureca.io / lib / js / primus.js View on Github external
self.ready(function(){
      WebSocket.__addTask(function () {
        self.ws = new WebSocket(self.uri());
        self.addEventListeners();
      });
    });
  });

ws

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

MIT
Latest version published 24 days ago

Package Health Score

94 / 100
Full package analysis