* Attaches to the given transport, starts it, and starts listening for messages. * * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward.
(transport: Transport)
| 109 | * The `server` object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward. |
| 110 | */ |
| 111 | async connect(transport: Transport): Promise<void> { |
| 112 | return await this.server.connect(transport); |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Closes the connection. |
no outgoing calls