NakamaWebsocketClient class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
The host address of the server.
final
-
onChannelMessage
→ Stream<
ChannelMessage> -
no setter
-
onChannelPresence
→ Stream<
ChannelPresenceEvent> -
no setter
- onDone → void Function()?
-
final
- onError → void Function(dynamic error)?
-
final
-
onMatchData
→ Stream<
MatchData> -
no setter
-
onMatchmakerMatched
→ Stream<
MatchmakerMatched> -
no setter
-
onMatchPresence
→ Stream<
MatchPresenceEvent> -
no setter
-
onNotifications
→ Stream<
Notifications> -
no setter
-
onStatusPresence
→ Stream<
StatusPresenceEvent> -
no setter
-
onStreamData
→ Stream<
StreamData> -
no setter
-
onStreamPresence
→ Stream<
StreamPresenceEvent> -
no setter
- port → int
-
The port number of the server. Defaults to 7349
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ssl → bool
-
final
- token → String
-
The user's access token.
final
Methods
-
addMatchmaker(
{required int minCount, int? maxCount, String? query, Map< String, double> ? numericProperties, Map<String, String> ? stringProperties}) → Future<MatchmakerTicket> -
close(
) → Future< void> -
createMatch(
) → Future< Match> -
followUsers(
{List< String> ? userIds, List<String> ? usernames}) → Future<Status> -
joinChannel(
{required String target, required ChannelJoin_Type type, required bool persistence, }) → Future< Channel> -
joinMatch(
String matchId, {String? token}) → Future< Match> -
leaveChannel(
{required String channelId}) → Future< void> -
leaveMatch(
String matchId) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeMatchmaker(
String ticket) → Future< void> -
rpc(
{required String id, String? payload}) → Future< Rpc> -
sendMatchData(
{required String matchId, required Int64 opCode, required List< int> data}) → Future<List< UserPresence> > -
sendMessage(
{required String channelId, required Map< String, String> content}) → Future<ChannelMessageAck> -
toString(
) → String -
A string representation of this object.
inherited
-
unfollowUsers(
{List< String> ? userIds}) → Future<Status> -
updateMessage(
{required String channelId, required String messageId, required Map< String, String> content}) → Future<ChannelMessageAck> -
updateStatus(
String status) → Future
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → NakamaWebsocketClient
-
Returns the default instance.
no setter
Static Methods
-
instanceFor(
{required String key}) → NakamaWebsocketClient - Returns the instance with given key.