You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user can pass custom state properties via the presence API and since #224 it is now possible to pass a generic that will adjust the types accordingly.
channel.presenceState<MyPresenceState>();
However it would be useful if we could stamp the presence types on creation of the channel
constchannel=client.channel<MyPresenceState>('id',config);// would enforce track to `MyPresenceState`channel.track({ ... });// return presence state as `MyPresenceState`constpresenceState=channel.presenceState();
Additional context
Please let me know if this is more than a chore and needs to be recorded elsewhere.
The text was updated successfully, but these errors were encountered:
Chore
Describe the chore
A user can pass custom state properties via the presence API and since #224 it is now possible to pass a generic that will adjust the types accordingly.
However it would be useful if we could stamp the presence types on creation of the channel
Additional context
Please let me know if this is more than a chore and needs to be recorded elsewhere.
The text was updated successfully, but these errors were encountered: