deepstreamIO / deepstream.io

deepstream.io server

Home Page:https://deepstreamio.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting WebSocket Connection to failed error

GerbenMolHSL opened this issue · comments

I am trying to connect my javascript file to my deepstreamIO server but i get the error WebSocket connection to 'wss://localhost:6020/deepstream' failed
This is my js file:

var client = deepstream("wss://localhost:6020");
client.login({}, function(success, data) {
    print(succes+" "+data)
    if (success) {
        console.log("Connected to deepstreamm!!!")
    } else {
        console.log("failed: "+data)
    }
});

I am using a https server and the deepstreamIO server is on the same machine as the https server

Hi, try deepstream("localhost:6020/deepstream"); thats the default connection url