隐藏websoket连接失败的信息.

pull/7/head
ChenX 7 years ago
parent 3bbfa59e43
commit 1cd60b10d5

@ -19,10 +19,18 @@ export class WebSocketClientServer
//ws连接.
private wsConnect()
{
this.ws = new WebSocket("ws://localhost:8001/CADHost");
this.ws.onopen = this.wsOnOpen;
this.ws.onmessage = this.wsOnMessage;
this.ws.onclose = this.wsOnClose;
try
{
this.ws = new WebSocket("ws://localhost:8001/CADHost");
this.ws.onopen = this.wsOnOpen;
this.ws.onmessage = this.wsOnMessage;
this.ws.onclose = this.wsOnClose;
}
catch (error)
{
}
}
private wsOnOpen = (event: Event) =>

Loading…
Cancel
Save