start phase 1
This commit is contained in:
1 parent
6954d1b91c
commit
fefea0bdf6
16 files changed
+625
-4904
No files matched your search
@@ -53,10 +53,7 @@ export class WsTransport {
|
||||
throw new Error("Request method is required");
|
||||
}
|
||||
const id = String(this.nextId++);
|
||||
const body =
|
||||
params !== undefined
|
||||
? { _tag: method, ...(params as Record<string, unknown>) }
|
||||
: { _tag: method };
|
||||
const body = params != null ? { ...params, _tag: method } : { _tag: method };
|
||||
const message: WsRequestEnvelope = { id, body };
|
||||
|
||||
return new Promise<T>((resolve, reject) => {
|
||||
|
||||
Reference in new issue
Block a user