Add server add-on documentation

Reviewed By: nikoant

Differential Revision: D36446375

fbshipit-source-id: dfa9098428413bff454b5893f022735267dba5b8
This commit is contained in:
Andrey Goncharov
2022-05-18 02:20:53 -07:00
committed by Facebook GitHub Bot
parent 76d4f01934
commit 88bc3110a5
2 changed files with 121 additions and 2 deletions

View File

@@ -153,9 +153,7 @@ export interface BasePluginClient<
/**
* Subscribe to a specific event arriving from the server add-on.
*
* Messages can only arrive if the plugin is enabled and connected.
* For background plugins messages will be batched and arrive the next time the plugin is connected.
*/
onServerAddOnMessage<Event extends keyof ServerAddOnEvents & string>(
event: Event,