EndpointRef class abstract
This class connects endpoints on the server with the client, it also hooks up streams with the endpoint. Overridden by generated code.
Constructors
- EndpointRef(EndpointCaller caller)
- Creates a new EndpointRef.
Properties
- caller → EndpointCaller
-
Holds a reference to the caller class.
final
- client ↔ ServerpodClientShared
-
Reference to the client.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the endpoint this reference is connected to.
no setter
- 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 setter
Methods
-
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.
-
sendStreamMessage(
SerializableEntity message) → Future< void> - Sends a message to the endpoint's stream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited