PluginCommunicationChannel class abstract

A communication channel that allows a ServerPlugin to receive Requests from, and to return both Responses and Notifications to, an analysis server.

Clients may not extend, implement or mix-in this class.

Properties

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

Methods

close() → void
Close the communication channel.
listen(void onRequest(Request request), {Function? onError, void onDone()?}) → void
Listen to the channel for requests. If a request is received, invoke the onRequest function. If an error is encountered while trying to read from the socket, invoke the onError function. If the socket is closed by the client, invoke the onDone function. Only one listener is allowed per channel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendNotification(Notification notification) → void
Send the given notification to the server.
sendResponse(Response response) → void
Send the given response to the server.
toString() String
A string representation of this object.
inherited

Operators

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