deepstreamIO / deepstream.io

deepstream.io server
https://deepstreamio.github.io
MIT License
7.13k stars 382 forks source link

Getting WebSocket Connection to failed error #1109

Closed GerbenMolHSL closed 2 years ago

GerbenMolHSL commented 2 years ago

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

jaime-ez commented 2 years ago

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