AngularJS + Angular Wamp + Crossbar setup troubles

#1

WebSocketconnection to 'ws://localhost:9000/'failed:Errorduring
WebSockethandshake:Unexpectedresponse code:200

Try using ws://localhost:9000/ws as your URL.

The reason is that your node config runs WAMP-over-WebSocket on path "/ws", not "/":

···

"transports":[
{
"type":"web",
"endpoint":{
"type":"tcp",
"port":9000
},
"paths":{
"/":{
"type":"static",
"directory":".."
},
"ws":{
"type":"websocket"
}

0 Likes