EndpointAdmin class Endpoint

Endpoint for handling admin functions.

Inheritance

Constructors

EndpointAdmin(EndpointCaller caller)

Properties

caller EndpointCaller
Holds a reference to the caller class.
finalinherited
client ServerpodClientShared
Reference to the client.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the endpoint this reference is connected to.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<SerializableEntity>
Stream of messages sent from an endpoint that supports streaming.
no setterinherited

Methods

blockUser(int userId) Future<void>
Marks a user as blocked so that they can't log in, and invalidates their auth key so that they can't keep calling endpoints through their current session.
getUserInfo(int userId) Future<UserInfo?>
Finds a user by its id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetStream() → void
Resets web socket stream, so it's possible to re-listen to endpoint streams.
inherited
sendStreamMessage(SerializableEntity message) Future<void>
Sends a message to the endpoint's stream.
inherited
toString() String
A string representation of this object.
inherited
unblockUser(int userId) Future<void>
Unblocks a user so that they can log in again.

Operators

operator ==(Object other) bool
The equality operator.
inherited