💬 Flutter Package for Kick Chat
Initialize the chat
KickChat kickChat = KickChat(
kc.channel,
onDone: () => {},
onError: () => {},
);
Connect to the chat
kickChat.connect();
Listen to new chat events
kickChat.chatStream.listen((message) {
final KickEvent? kickEvent = eventParser(message);
if (kickEvent?.event == TypeEvent.message) {
// your code
}
})