Versions in this module Expand all Collapse all v1 v1.0.3 Sep 2, 2023 Changes in this version + type Client struct + func NewClient(roomID string, enterUID string, buvid string, userAgent string, referer string) *Client + func (c *Client) Handle(p packet.Packet) + func (c *Client) OnDanmaku(f func(*message.Danmaku)) + func (c *Client) OnGift(f func(gift *message.Gift)) + func (c *Client) OnGuardBuy(f func(*message.GuardBuy)) + func (c *Client) OnLive(f func(*message.Live)) + func (c *Client) OnSuperChat(f func(*message.SuperChat)) + func (c *Client) OnUserToast(f func(*message.UserToast)) + func (c *Client) RegisterCustomEventHandler(cmd string, handler func(s string)) + func (c *Client) SetHost(host string) + func (c *Client) Start() error + func (c *Client) Stop() + func (c *Client) UseDefaultHost()