setUserObject method

  1. @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(
  1. Session session,
  2. 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;
}