kick

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package kick reads a Kick channel's chat over the Pusher WebSocket that kick.com's own web client uses.

This is unofficial: Kick publishes no chat API, so the app key and event names below are lifted from the public web client and can change without notice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source is one Kick channel's chat. It implements chat.Source.

func New

func New(slug string) *Source

New returns a Source for the given channel slug, with or without a leading "@".

func (*Source) Label

func (s *Source) Label() string

Label returns the "kick:<slug>" identifier for this source.

func (*Source) Platform

func (s *Source) Platform() string

Platform returns "kick".

func (*Source) Run

func (s *Source) Run(ctx context.Context, sink chat.Sink) error

Run subscribes to the channel's chatroom and streams messages into sink until the connection drops or ctx is done. Reconnecting is the caller's job; see chat.Supervise.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL