Skip to content

Hub fails to handle connect request #11

@archie

Description

@archie

Running:

// to connect in node.js do:
var pubsub = require('pubsub.io').connect('127.0.0.1:9999');

results in the following stacktrace on the hub:

TypeError: Cannot call method 'replace' of undefined
    at sign (/home/archie/tools/pubsub-hub/node_modules/websock/index.js:17:22)
    at Array.forEach (native)
    at sign (/home/archie/tools/pubsub-hub/node_modules/websock/index.js:16:11)
    at handshake0 (/home/archie/tools/pubsub-hub/node_modules/websock/index.js:48:14)
    at exports.onupgrade (/home/archie/tools/pubsub-hub/node_modules/websock/index.js:137:76)
    at Array.router [as 0] (/home/archie/tools/pubsub-hub/node_modules/router/index.js:92:6)
    at find (/home/archie/tools/pubsub-hub/node_modules/router/index.js:33:19)
    at Server.fn (/home/archie/tools/pubsub-hub/node_modules/router/index.js:66:7)
    at Server.EventEmitter.emit (events.js:115:20)
    at Socket.socket.ondata (http.js:1710:14)

Using:

dev ➜ pubsub.io-client node --version
v0.8.9

on:

dev ➜ pubsub.io-client uname -rvpo
3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 GNU/Linux

Any clues as to why this is happening or how it can be solved?

Best regards,
Marcus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions