Skip to content

Request help with this error : websocket not defined at browser connection #1

@ghost

Description

Hi Ytham,

I was trying out your code, but this bug is troubling me. Could you please help. That would be very helpful.

C:\project\node_modules\leapjs\lib\connection\browser.js:15
var socket = new WebSocket(this.getUrl());
^
ReferenceError: WebSocket is not defined
at BrowserConnection.setupSocket (C:\project\node_modules\leapjs\lib\connect
ion\browser.js:15:20)
at BaseConnection.connect (C:\project\node_modules\leapjs\lib\connection\bas
e.js:90:22)
at Controller.connect (C:\project\node_modules\leapjs\lib\controller.js:89:2
3)
at Object. (C:\project\robotarm.js:87:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions