Open RayKahn opened 8 years ago
I am also facing the same issue with it. It happens more than half of the times I run my code. @RayKahn Did you find anything?
@SPorwal I am afraid I have not. I am still waiting for some answers. Let me know please if you do.
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.