How to use websocket-driver - 10 common examples

To help you get started, we’ve selected a few websocket-driver 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 makuga01 / dnsFookup / FE / node_modules / faye-websocket / lib / faye / websocket.js View on Github external
WebSocket.validateOptions = function(options, validKeys) {
  driver.validateOptions(options, validKeys);
};
github Lapple / ErrorBoard / node_modules / sockjs / node_modules / faye-websocket / lib / faye / websocket.js View on Github external
WebSocket.validateOptions = function(options, validKeys) {
  driver.validateOptions(options, validKeys);
};
github sx1989827 / DOClever / Desktop / node_modules / faye-websocket / lib / faye / websocket / api.js View on Github external
var API = function(options) {
  options = options || {};
  driver.validateOptions(options, ['headers', 'extensions', 'maxLength', 'ping', 'proxy', 'tls', 'ca']);

  this.readable = this.writable = true;

  var headers = options.headers;
  if (headers) {
    for (var name in headers) this._driver.setHeader(name, headers[name]);
  }

  var extensions = options.extensions;
  if (extensions) {
    [].concat(extensions).forEach(this._driver.addExtension, this._driver);
  }

  this._ping          = options.ping;
  this._pingId        = 0;
  this.readyState     = API.CONNECTING;
github sx1989827 / DOClever / Desktop / node_modules / sockjs-client / node_modules / faye-websocket / lib / faye / websocket / api.js View on Github external
var API = function(options) {
  options = options || {};
  driver.validateOptions(options, ['headers', 'extensions', 'maxLength', 'ping', 'proxy', 'tls', 'ca']);

  this.readable = this.writable = true;

  var headers = options.headers;
  if (headers) {
    for (var name in headers) this._driver.setHeader(name, headers[name]);
  }

  var extensions = options.extensions;
  if (extensions) {
    [].concat(extensions).forEach(this._driver.addExtension, this._driver);
  }

  this._ping          = options.ping;
  this._pingId        = 0;
  this.readyState     = API.CONNECTING;
github carlosazaustre / react-firebase-t3chfest / node_modules / faye-websocket / lib / faye / websocket / api.js View on Github external
var API = function(options) {
  options = options || {};
  driver.validateOptions(options, ['headers', 'extensions', 'maxLength', 'ping', 'proxy', 'tls', 'ca']);

  this.readable = this.writable = true;

  var headers = options.headers;
  if (headers) {
    for (var name in headers) this._driver.setHeader(name, headers[name]);
  }

  var extensions = options.extensions;
  if (extensions) {
    [].concat(extensions).forEach(this._driver.addExtension, this._driver);
  }

  this._ping          = options.ping;
  this._pingId        = 0;
  this.readyState     = API.CONNECTING;
github faye / faye-websocket-node / lib / faye / websocket.js View on Github external
WebSocket.validateOptions = function(options, validKeys) {
  driver.validateOptions(options, validKeys);
};
github faye / faye-websocket-node / lib / faye / websocket / api.js View on Github external
var API = function(options) {
  options = options || {};
  driver.validateOptions(options, ['headers', 'extensions', 'maxLength', 'ping', 'proxy', 'tls', 'ca']);

  this.readable = this.writable = true;

  var headers = options.headers;
  if (headers) {
    for (var name in headers) this._driver.setHeader(name, headers[name]);
  }

  var extensions = options.extensions;
  if (extensions) {
    [].concat(extensions).forEach(this._driver.addExtension, this._driver);
  }

  this._ping          = options.ping;
  this._pingId        = 0;
  this.readyState     = API.CONNECTING;
github ridhwaans / homehost / client / node_modules / faye-websocket / lib / faye / websocket / api.js View on Github external
var API = function(options) {
  options = options || {};
  driver.validateOptions(options, ['headers', 'extensions', 'maxLength', 'ping', 'proxy', 'tls', 'ca']);

  this.readable = this.writable = true;

  var headers = options.headers;
  if (headers) {
    for (var name in headers) this._driver.setHeader(name, headers[name]);
  }

  var extensions = options.extensions;
  if (extensions) {
    [].concat(extensions).forEach(this._driver.addExtension, this._driver);
  }

  this._ping          = options.ping;
  this._pingId        = 0;
  this.readyState     = API.CONNECTING;
github carlosazaustre / react-firebase-t3chfest / node_modules / faye-websocket / lib / faye / websocket.js View on Github external
WebSocket.validateOptions = function(options, validKeys) {
  driver.validateOptions(options, validKeys);
};

websocket-driver

WebSocket protocol handler with pluggable I/O

Apache-2.0
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis