(message: JSONRPCMessage)
| 24 | async start(): Promise<void> {} |
| 25 | |
| 26 | async send(message: JSONRPCMessage): Promise<void> { |
| 27 | if (this.closed) { |
| 28 | throw new Error('Transport is closed') |
| 29 | } |
| 30 | // Deliver to the other side asynchronously to avoid stack depth issues |
| 31 | // with synchronous request/response cycles |
| 32 | queueMicrotask(() => { |
| 33 | this.peer?.onmessage?.(message) |
| 34 | }) |
| 35 | } |
| 36 | |
| 37 | async close(): Promise<void> { |
| 38 | if (this.closed) { |
no outgoing calls
no test coverage detected