triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

how to connect to https #35

Closed wiliarko closed 6 years ago

wiliarko commented 7 years ago

how to connect to https example : https:demo.com:5808

how to connect to https, I've tried if http work but https failed

roblav96 commented 7 years ago

@wiliarko

let Socket = new SocketIO('https://wegossipapp.com', {
        path: '/socket',
        forceNew: false,
    })
wiliarko commented 7 years ago

i use this

var options = { forceNew: false }; let socket = SocketIO.connect('https://try.worksaurus.com:58082', options);

I've tried, and the results can not connet

roblav96 commented 7 years ago

That's a server config problem =/

My server opts looks like:

const io: SocketIO.Server = SocketIO(9876, {
    path: '/socket',
    serveClient: false,
    transports: ['websocket'],
})