@ekhein/sekiro-node-client 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { format } from 'util';
|
|
2
1
|
import { randomUUID } from 'crypto';
|
|
3
2
|
import { WebSocket } from 'partysocket';
|
|
4
3
|
import { WebSocket as Client } from 'ws';
|
|
@@ -17,9 +16,9 @@ export class SekiroClient extends WebSocket {
|
|
|
17
16
|
maxEnqueuedMessages: -1,
|
|
18
17
|
WebSocket: class extends Client {
|
|
19
18
|
constructor() {
|
|
20
|
-
const
|
|
21
|
-
const wsURL = new URL("/business-demo/register",
|
|
22
|
-
wsURL.searchParams.append("group",
|
|
19
|
+
const group = String(scope).toLowerCase();
|
|
20
|
+
const wsURL = new URL("/business-demo/register", "ws://" + host + ":" + prot);
|
|
21
|
+
wsURL.searchParams.append("group", group);
|
|
23
22
|
wsURL.searchParams.append("clientId", clientId);
|
|
24
23
|
super(wsURL);
|
|
25
24
|
}
|