An open API service indexing awesome lists of open source software.

https://github.com/lezdcs/kick_chat

💬 Flutter Package for Kick Chat
https://github.com/lezdcs/kick_chat

chat irl kick websocket

Last synced: 4 months ago
JSON representation

💬 Flutter Package for Kick Chat

Awesome Lists containing this project

README

          

# kick_chat
💬 Flutter Package for Kick Chat

## Usage

Initialize the chat

```dart
KickChat kickChat = KickChat(
kc.channel,
onDone: () => {},
onError: () => {},
);
```

Connect to the chat
```dart
kickChat.connect();
```

Listen to new chat events
```dart
kickChat.chatStream.listen((message) {
final KickEvent? kickEvent = eventParser(message);
if (kickEvent?.event == TypeEvent.message) {
// your code
}
})
```