* Retrieves the name of the Alive channel used by Desktop to receive * high-signal notifications.
()
| 863 | * high-signal notifications. |
| 864 | */ |
| 865 | public async getAliveDesktopChannel(): Promise<IAPIAliveSignedChannel | null> { |
| 866 | try { |
| 867 | const res = await this.ghRequest('GET', '/desktop_internal/alive-channel') |
| 868 | const signedChannel = await parsedResponse<IAPIAliveSignedChannel>(res) |
| 869 | return signedChannel |
| 870 | } catch (e) { |
| 871 | log.warn(`Alive channel request failed: ${e}`) |
| 872 | return null |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * Retrieves the URL for the Alive websocket. |
no test coverage detected