HMSNotifications

Methods

onNotification

onNotification(cb): () => void you can subscribe to notifications for new message, peer add etc. using this function. note that this is not meant to maintain any state on your side, as the reactive store already does that. The intent of this function is mainly to display toast notifications or send analytics. We'll provide a display message which can be displayed as it is for common cases.

Parameters

NameType
cbNotificationCallback

Returns

fn ▸ (): void

Returns

void