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

https://github.com/songomen/kick-chat-wrapper

Simple wrapper for connecting to Kick chat through websocket
https://github.com/songomen/kick-chat-wrapper

chat-wrapper kick

Last synced: about 1 year ago
JSON representation

Simple wrapper for connecting to Kick chat through websocket

Awesome Lists containing this project

README

          

# Introduction
`kickchatwrapper` is a Go package that provides a wrapper for interacting with the Kick websocket. It allows you to subscribe to chat channels and receive chat messages.

# Installation
```
go get github.com/your-username/kickchatwrapper
```

# Usage

```
client, err := kickchatwrapper.NewClient()
if err != nil {
// handle error
}

client.JoinChannelByID(231221)

messageChan := client.ListenForMessages()

go func() {
for message := range messageChan {
fmt.Printf("Received chat message: %+v\n", message)
}
}()

// To close connection you can call
// client.Close()
```
# Notes
Right now it is only possible to join chat room using user ID because to be able to join it by username we would need to call their API but its protected by CloudFlare.