richpresence

package
v0.0.0-...-8951fd8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectWS

func ConnectWS()

func DataTypeHandler

func DataTypeHandler(message bytes.Buffer, datatype string)

func HandleInit

func HandleInit()

Types

type WebSocket

type WebSocket struct{}

func (*WebSocket) OnClose

func (c *WebSocket) OnClose(_ *gws.Conn, err error)

func (*WebSocket) OnMessage

func (c *WebSocket) OnMessage(socket *gws.Conn, message *gws.Message)

func (*WebSocket) OnOpen

func (c *WebSocket) OnOpen(socket *gws.Conn)

func (*WebSocket) OnPing

func (c *WebSocket) OnPing(socket *gws.Conn, _ []byte)

func (*WebSocket) OnPong

func (c *WebSocket) OnPong(_ *gws.Conn, _ []byte)

Jump to

Keyboard shortcuts

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