diff --git a/ModuleClientAPI.md b/ModuleClientAPI.md index dbaa9c5..718b527 100644 --- a/ModuleClientAPI.md +++ b/ModuleClientAPI.md @@ -92,6 +92,18 @@ api.onResize(callback); | -------- | -------- | -------------------------------------------------------- | | callback | function | Function that will be called when the module is resized. | +### onReconnect + +Register a listener for when the module reconnects to the server. + +```javascript +api.onReconnect(callback); +``` + +| Argument | Type | Description | +| -------- | -------- | ------------------------------------------------------------ | +| callback | function | Function that will be called when the module is reconnected. | + ## Getters ### dom