setUserObject method
- @Deprecated('This method was used in the old streaming API and will be removed in a future version. ' 'Use streams as parameters or return type of an endpoint to resolve the authenticated user directly.')
- Session session,
- dynamic userObject
inherited
Associate a custom object with this Endpoint and Session.
Implementation
@Deprecated(
'This method was used in the old streaming API and will be removed in a future version. '
'Use streams as parameters or return type of an endpoint to resolve the authenticated user directly.',
)
void setUserObject(Session session, dynamic userObject) {
_userObjects[session] = userObject;
}