Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket Not defined after set process.title #106

Closed
NStal opened this issue Sep 24, 2013 · 7 comments
Closed

Websocket Not defined after set process.title #106

NStal opened this issue Sep 24, 2013 · 7 comments
Assignees
Labels
Milestone

Comments

@NStal
Copy link

NStal commented Sep 24, 2013

If process.title is set, then it throws.

ReferenceError: WebSocket is not defined
at [object Object].Connection.setupSocket (/home/nstal/workspace/leap-mouse/node_modules/leapjs/lib/connection.js:5:20)
at [object Object].BaseConnection.connect (/home/nstal/workspace/leap-mouse/node_modules/leapjs/lib/base_connection.js:82:22)
at [object Object].Controller.connect (/home/nstal/workspace/leap-mouse/node_modules/leapjs/lib/controller.js:85:23)
at Object. (/home/nstal/workspace/leap-mouse/main.coffee:106:11, :177:14)
at Object. (/home/nstal/workspace/leap-mouse/main.coffee:1:1, :179:4)
at Module._compile (module.js:456:26)

@rdepena
Copy link

rdepena commented Oct 9, 2013

I am also getting this error exclusively on linux mint 15 with node 0.10, the same code works on mac os 10.

@yuridepra
Copy link

I've the same problem on Windows 7... any suggestion?

@flynnwt
Copy link

flynnwt commented Dec 1, 2013

Same as issue #87? Try setting inNode: true option.

@yuridepra
Copy link

Yes!! !! thank you!! this is the solution!! on win 7 the inNode option takes false value if you don't overwrite it!

@ghost ghost assigned bingomanatee Jan 9, 2014
@bingomanatee
Copy link
Contributor

I have written #136 to specifically test for the non-existence of WebSockets in the browser and hopefully throw up better informative messages in this situation.

@ukpark
Copy link

ukpark commented Jan 27, 2014

I have the same problem, when I run node.js in the examples folder (I am using leapjs 0.2.2). Where can I set "inNode: true" option?

@yuridepra
Copy link

this works fine for me...

var controller = new Leap.Controller({ inNode: true, enableGestures: true});

pehrlich added a commit that referenced this issue Jan 29, 2014
…ixes #106

Unfortunately, there's no great way to test this, but it checks out
under parallels.
pehrlich added a commit that referenced this issue Jan 30, 2014
Change inNode check for windows compatability, fixes #106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants