socket_protocol

package
v4.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteTo

func WriteTo(w io.Writer, t PacketType, nps string, arg ...interface{}) (int64, error)

func WriteToWithAck

func WriteToWithAck(w io.Writer, t PacketType, nps string, ack string, arg ...interface{}) (int64, error)

Types

type PacketType

type PacketType int
const (
	CONNECT PacketType = iota
	DISCONNECT
	EVENT
	ACK
	CONNECT_ERROR
	BINARY_EVENT
	BINARY_ACK
)

func (PacketType) String

func (id PacketType) String() string

Jump to

Keyboard shortcuts

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