2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-13 20:13:19 +00:00
This commit is contained in:
2025-07-23 20:54:10 +03:00
parent ef12858dbd
commit 693367f626
2 changed files with 10 additions and 3 deletions

View File

@@ -50,6 +50,8 @@ class WSocket extends ISocket {
IPEndPoint? _localEP, _remoteEP;
String wsUrl = "";
bool begin() {
if (began) return false;
@@ -100,7 +102,7 @@ class WSocket extends ISocket {
_state = SocketState.Connecting;
_channel = WebSocketChannel.connect(
Uri.parse("${secure ? 'wss' : 'ws'}://${hostname}:${port}"),
Uri.parse("${secure ? 'wss' : 'ws'}://${hostname}:${port}/${wsUrl}"),
); //binaryType: BinaryType.list);
if (_channel == null)