GraphQLWsCloseCode class abstract final

The close codes the protocol names.

A WebSocket host closes with these so that a client can tell a rejected connection from a malformed message. This package does not own the socket, so it hands the code to GraphQLWsServer.onClose rather than sending 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

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

Constants

badRequest → const int
The server could not read a message, or read one it does not expect.
connectionInitialisationTimeout → const int
No connection_init arrived in time.
forbidden → const int
onConnect refused the connection.
internalServerError → const int
The server broke on a message it had already accepted as well formed.
subscriberAlreadyExists → const int
An operation id already in use was subscribed again.
tooManyInitialisationRequests → const int
More than one connection_init arrived.
unauthorized → const int
Something arrived before the connection was accepted.