npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

engine.io-options-from-url

0.0.3

@soldair

npmHomeRepoSnykSocket
Downloads:11
$ npm install engine.io-options-from-url
DailyWeeklyMonthlyYearly

node-engine.io-options-from-url

engine.io-client's options / defaults are seriously broken for cross domain. this takes a url and sets the options correctly.

var engine = require('engine.io-stream')
var fix = require('engine.io-options-from-url');

var stream = engine(fix('https://mywebsopckets.com/engine'));

// profit

in this example engine.io would have send the websocket to http://thedomainyouareon.comhttps//mywebsopckets.com/engine

w t f