There is no change when I use the method refresh() by ws.refresh() when they weren't connected. Why? And when they have been connected, they would just be disconnected and never connect again..
var ws = new ReconnectingWebSocket('ws://localhost:8866/view_tool'); $("#btn_reconnect").click(function(){ ws.refresh(); });
There is no change when I use the method refresh() by ws.refresh() when they weren't connected. Why? And when they have been connected, they would just be disconnected and never connect again..
var ws = new ReconnectingWebSocket('ws://localhost:8866/view_tool'); $("#btn_reconnect").click(function(){ ws.refresh(); });