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
- Host: GitHub
- URL: https://github.com/songomen/kick-chat-wrapper
- Owner: SongoMen
- License: mit
- Created: 2023-07-02T06:59:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T07:40:29.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T15:21:22.683Z (about 1 year ago)
- Topics: chat-wrapper, kick
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.