ServerCommunicationChannel class abstract

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

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.
kill() → void
Cause the plugin to terminate as soon as possible. This should only be used when the plugin has failed to terminate after sending it a 'plugin.shutdown' request.
listen(void onResponse(Response response), void onNotification(Notification notification), {void onError(dynamic error)?, void onDone()?}) → void
Listen to the channel for responses and notifications. If a response is received, invoke the onResponse function. If a notification is received, invoke the onNotification function. If an error is encountered while trying to read from the socket, invoke the onError function. If the socket is closed by the plugin, 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
sendRequest(Request request) → void
Send the given request to the plugin.
toString() String
A string representation of this object.
inherited

Operators

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