(token: string)
| 107 | // -- Connection -- |
| 108 | |
| 109 | connect(token: string): boolean { |
| 110 | if (token !== this.state.config.token) { |
| 111 | return false |
| 112 | } |
| 113 | this.state.connected = true |
| 114 | this.state.connectedAt = Date.now() |
| 115 | return true |
| 116 | } |
| 117 | |
| 118 | disconnect(): void { |
| 119 | this.state.connected = false |
no outgoing calls
no test coverage detected