engine.io-options-from-url

0.0.3 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i engine.io-options-from-url

    Weekly Downloads

    4

    Version

    0.0.3

    License

    none

    Last publish

    Collaborators

    • soldair