MCPcopy Create free account
hub / github.com/desktop/desktop / getAliveDesktopChannel

Method getAliveDesktopChannel

app/src/lib/api.ts:865–874  ·  view source on GitHub ↗

* Retrieves the name of the Alive channel used by Desktop to receive * high-signal notifications.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

AliveStoreClass · 0.80

Calls 2

ghRequestMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected