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 #1108

Closed GerbenMolHSL closed 2 years ago

GerbenMolHSL commented 2 years ago

I am trying to connect to the deepstream server with the javascript code , how do i fix this?:

var client = deepstream("wss://127.0.0.1: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 deepstream server runs on the same machine as my webserver