ws

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL = "wss://wsproxy.douyu.com:6675"

	RoomYYF = 9999
)

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) map[string]string

func DecodeRaw

func DecodeRaw(data []byte) []byte

func Encode

func Encode(kv ...string) []byte

func EncodeRaw

func EncodeRaw(data []byte) []byte

func Login

func Login(p LoginParams) error

Types

type Client

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

type LoginParams

type LoginParams struct {
	Room     int
	Stk      string
	Ltkid    string
	Username string
}

Jump to

Keyboard shortcuts

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