WebSocketService class

Constructors

WebSocketService()

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

connectToWebSocket(String url, {required String authToken}) → WebSocketChannel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMessageOnChannel(String message, WebSocketChannel webSocketChannel, Channel channel) → void
sendMessageOnRoom(String message, WebSocketChannel webSocketChannel, Room room) → void
sendPong(WebSocketChannel webSocketChannel) → void
sendUserPresence(WebSocketChannel webSocketChannel, String status) → dynamic
sendUserPresenceAway(WebSocketChannel webSocketChannel) → void
sendUserPresenceOnline(WebSocketChannel webSocketChannel) → void
sendUserStatusEvent(WebSocketChannel webSocketChannel, String roomId) → void
streamChannelMessagesSubscribe(WebSocketChannel webSocketChannel, Channel channel) → void
streamChannelMessagesUnsubscribe(WebSocketChannel webSocketChannel, Channel channel) → void
streamNotifyRoom(WebSocketChannel webSocketChannel, User user, Room room) → void
streamNotifyUserSubscribe(WebSocketChannel webSocketChannel, User user) → void
streamRoomMessagesSubscribe(WebSocketChannel webSocketChannel, Room room, {required String token}) → void
streamRoomMessagesUnsubscribe(WebSocketChannel webSocketChannel, Room room) → void
streamRoomTypingEvent(WebSocketChannel webSocketChannel, String roomId) → void
streamUserPresence(WebSocketChannel webSocketChannel, List<String> userId) → void
toString() String
A string representation of this object.
inherited

Operators

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