ByteStreamServerChannel class
A wrapper over a Stream/StreamSink that encodes/decores DAP/LSP request/response/event messages.
Constructors
-
ByteStreamServerChannel(Stream<
List< _input, StreamSink<int> >List< _output, Logger? _logger)int> >
Properties
Methods
-
close(
) → void -
listen(
void onMessage(ProtocolMessage message), {Function? onError, void onDone()?}) → StreamSubscription< String> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendEvent(
Event event) → void -
sendRequest(
Request request) → void -
sendResponse(
Response response) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited