ServerListener mixin
Instances of the class ServerListener receive information from Server about interactions with the server.
Clients may mix-in this class, but may not implement it.
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
-
badMessage(
String trimmedLine, dynamic exception) → void - Called when the Server could not decode a message.
-
errorMessage(
String line) → void - Called when the Server receives a line on stderr.
-
killingServerProcess(
String reason) → void - Called when the Server is terminating the server process rather than requesting that the server stop itself.
-
log(
String prefix, String details) → void - Log a message about interaction with the server.
-
messageReceived(
String json) → void - Called when the Server received a response or notification.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestSent(
String json) → void - Called when the Server sends a request.
-
startingServer(
String dartBinary, List< String> arguments) → void - Called when the Server starts the server process.
-
toString(
) → String -
A string representation of this object.
inherited
-
unexpectedMessage(
Map< String, Object?> message) → void - Called when the Server receives an unexpected message which is not a notification or response.
-
unexpectedNotificationFormat(
Map< String, Object?> message) → void - Called when the Server received a response, which is not an error, but the result is not an JSON object.
-
unexpectedResponse(
Map< String, Object?> message, Object id) → void -
Called when the Server received an unexpected response
where the
id
does not match theid
of an outstanding request. -
unexpectedResponseFormat(
Map< String, Object?> message) → void - Called when the Server received a response, which is not an error, but the result is not an JSON object.
-
unexpectedStop(
int exitCode) → void - Called when the server process unexpectedly exits with a non-zero exit code.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited