2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-04 14:08:20 +00:00

GetTypeUUID+wsUrl

This commit is contained in:
2025-07-23 20:53:05 +03:00
parent 9c13c3e7ae
commit c6c2e749be
4 changed files with 17 additions and 12 deletions

View File

@@ -13,6 +13,8 @@ export default class WSocket extends ISocket
this.receiveNetworkBuffer = new NetworkBuffer();
this.sendNetworkBuffer = new NetworkBuffer();
this.held = false;
this.wsUrl = "";
this.secure = false;
if (websocket != null)
{
@@ -84,12 +86,12 @@ export default class WSocket extends ISocket
return WSocket.webSocket;
}
connect(hostname, port, secure = false) {
connect(hostname, port) {
let self = this;
var rt = new AsyncReply();
this.state = SocketState.Connecting;
this.url = `ws${secure ? 's' : ''}://${hostname}:${port}`;
this.url = `ws${this.secure ? 's' : ''}://${hostname}:${port}/${this.wsUrl}`;
WSocket.getWebScoket().then(webSocket =>
{