You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have been trying to use socket.io to connect to a node server running on a secure port using wss or ws. I have not had much luck in the past couple of days. I need to send a message to the node server using socket.io. Here is my code (I am using net.iamyellow.tiws):
VOOMZI_WS = 'wss://my_ip_address:9443'; var io = require('socket.io'); var socket = io.connect(Alloy.Globals.VOOMZI_WS, { 'transports' : ['websocket'] }); socket.on('connect', function() { console.log('connected'); }); socket.on('error', function(e) { console.log('disconnected: ' + JSON.stringify(e)); });
The end result is always the same "disconnected: 'The network connection was lost.'" I am using a self-signed certificate, BTW.
Can someone tell me why is this happening?
Greatly appreciate any help here.
The text was updated successfully, but these errors were encountered:
Hello,
I have been trying to use socket.io to connect to a node server running on a secure port using wss or ws. I have not had much luck in the past couple of days. I need to send a message to the node server using socket.io. Here is my code (I am using net.iamyellow.tiws):
VOOMZI_WS = 'wss://my_ip_address:9443';
var io = require('socket.io');
var socket = io.connect(Alloy.Globals.VOOMZI_WS, {
'transports' : ['websocket']
});
socket.on('connect', function() {
console.log('connected');
});
socket.on('error', function(e) {
console.log('disconnected: ' + JSON.stringify(e));
});
The end result is always the same "disconnected: 'The network connection was lost.'" I am using a self-signed certificate, BTW.
Can someone tell me why is this happening?
Greatly appreciate any help here.
The text was updated successfully, but these errors were encountered: