Channel class

Constructors

Channel(WebSocketChannel _client, ChannelHandler _handler)

Properties

globalCallback ← dynamic Function(ChannelResultModel)
no getter
hashCode int
The hash code for this object.
no setterinherited
roomId → dynamic
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user UserModel?
getter/setter pair

Methods

dispose(VChatCloudResult result) → void
join(UserModel user) Future<ChannelResultModel>
방 접속
leave() Channel
방 퇴장
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestClientList() Future<List<UserModel>>
접속유저 목록 조회
sendCustom(String message) Channel
커스텀 이벤트 발송
sendEmoji(String message, {MimeType mimeType = MimeType.emojiImg}) Channel
이모지 발송
sendFile(UploadFileModel file) Future<Channel>
파일 전송
sendMessage(String message, {MimeType mimeType = MimeType.text}) Channel
메시지 발송
sendNotice(String message, {MimeType mimeType = MimeType.text, dynamic userInfo}) Channel
공지사항 발송
sendWhisper(String message, {required String receivedClientKey, MimeType mimeType = MimeType.text}) Channel
귓속말 발송
toString() String
A string representation of this object.
inherited

Operators

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