(transport: { start: () => Promise<void> })
| 171 | } |
| 172 | |
| 173 | async connect(transport: { start: () => Promise<void> }) { |
| 174 | this.transport = transport |
| 175 | await transport.start() |
| 176 | // After successful connect, bind to the last-created client name |
| 177 | this._state = getOrCreateClientState(lastCreatedClientName) |
| 178 | } |
| 179 | |
| 180 | setRequestHandler(schema: unknown, handler: (...args: any[]) => Promise<any>) { |
| 181 | this._state.requestHandlers.set(schema, handler) |
no test coverage detected