JSteunou / webstomp-client

Stomp client over websocket for browsers
Apache License 2.0
299 stars 59 forks source link

Not able to successfully run example #81

Open davinctor opened 5 years ago

davinctor commented 5 years ago

Good day, gentlemen.

I can't run a working example. When I'm opening broadcast-socks.html always see only:

Failed to load resource: net::ERR_CONNECTION_REFUSED
:15674/stomp/info?t=1561977023243:1 Failed to load resource: net::ERR_CONNECTION_REFUSED

Whoops! Lost connection to http://localhost:15674/stomp: 
event: n {type: "close", bubbles: false, cancelable: false, timeStamp: 1561977023295, wasClean: false, …}

Whoops! Lost connection to http://localhost:15674/stomp: 
event: n {type: "close", bubbles: false, cancelable: false, timeStamp: 1561977023297, wasClean: false, …}

Obviously it's can't connect to the websocket.

Also, I'm not able to run node run example/broadcast-node.js directly. The error is the next:

internal/modules/cjs/loader.js:626
    throw err;
    ^

Error: Cannot find module '.../webstomp-client/run'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
    at Function.Module._load (internal/modules/cjs/loader.js:527:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Would be thankful for any help.