MethodStreamManager class

Manages the streams for an endpoint method call. Should only be used by Serverpod packages.

Annotations
  • @internal

Constructors

MethodStreamManager({_OnInputStreamClosed? onInputStreamClosed, _OnOutputStreamClosed? onOutputStreamClosed, _OnOutputStreamError? onOutputStreamError, _OnOutputStreamValue? onOutputStreamValue})

Properties

hashCode int
The hash code for this object.
no setterinherited
openInputStreamCount int
no setter
openOutputStreamCount int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeAllStreams() Future<void>
closeStream({required String endpoint, required String method, String? parameter, required UuidValue methodStreamId, required CloseReason reason}) Future<void>
createStream({required MethodStreamCallContext methodStreamCallContext, required UuidValue methodStreamId, required Session session}) → void
dispatchData({required String endpoint, required String method, required UuidValue methodStreamId, String? parameter, required Object? value}) bool
Dispatches a message to the correct stream controller.
dispatchError({required String endpoint, required String method, required UuidValue methodStreamId, String? parameter, required Object error}) bool
Dispatches an error to the correct stream controller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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