MessageType class
Defines the type of a Hub Message.
Constructors
- MessageType.new(String name, int value)
-
const
- MessageType.fromJSON(int obj)
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → int -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- cancelInvocation → const MessageType
- Indicates the message is a Cancel Invocation message and implements the CancelInvocationMessage interface.
- close → const MessageType
- Indicates the message is a Close message and implements the CloseMessage interface.
- completion → const MessageType
- Indicates the message is a Completion message and implements the CompletionMessage interface.
- invocation → const MessageType
- Indicates the message is an Invocation message and implements the InvocationMessage interface.
- ping → const MessageType
- Indicates the message is a Ping message and implements the PingMessage interface.
- streamInvocation → const MessageType
- Indicates the message is a Stream Invocation message and implements the StreamInvocationMessage interface.
- streamItem → const MessageType
- Indicates the message is a StreamItem message and implements the StreamItemMessage interface.