MattermostWebsocketClient class

Implements a client for a Mattermost websocket connection

Constructors

MattermostWebsocketClient(String url, {Map<String, String>? headers, dynamic onEvent(MmWsEvent)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
messageStream Stream<MmWsMessage>
Listen to the messageStream to get every message as it comes in. However, the preferred method is to use the onEvent callback and to await the action methods.
no setter
onEvent ↔ dynamic Function(MmWsEvent)?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

connect() Future<void>
function to handle websocket connections
getStatuses() Future<MmWsReply>
getStatusesByIds(List<String> userIds) Future<MmWsReply>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(MmWsAction action) Future<MmWsReply>
toString() String
A string representation of this object.
inherited
userTyping(String channelId, [String parentId = '']) Future<MmWsReply>

Operators

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