Skip to content

Commit

Permalink
First commit for RTM 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Aug 12, 2024
1 parent 5f6bfb5 commit ece1c6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/lib/src/rtm_api_demo.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:collection';
import 'dart:convert';
import 'dart:typed_data';

import 'package:agora_rtm/agora_rtm.dart';
import 'package:flutter/material.dart';
Expand Down Expand Up @@ -372,7 +373,8 @@ class _RtmApiDemoState extends State<RtmApiDemo> {
_button('RtmClient.publishBinaryMessage', () async {
final result = await _rtmClient.publishBinaryMessage(
_channelNameController.text,
utf8.encode(_rtmClientMessageController.text),
Uint8List.fromList(
utf8.encode(_rtmClientMessageController.text)),
channelType: _rtmChannelType,
messageType: RtmMessageType.rtmMessageTypeBinary,
customType: _rtmClientPublishCustomTypeController.text);
Expand Down

0 comments on commit ece1c6e

Please sign in to comment.