package
0.9.9
Repository: https://github.com/queue-b/gocketio.git
Documentation: pkg.go.dev

# Functions

HasBinary returns true if the data contains []byte or fixed-length byte arrays, false otherwise.
IsRootNamespace returns true if the namespace is / or "", false otherwise.

# Constants

Ack is a packet that contains a payload acknowledging receipt of a previously sent Event.
BinaryAck is a packet that contains a payload acknowledging receipt of a previously sent Event.
BinaryEvent is a packet that contains event information.
Connect is a packet that is sent when the remote connection is initially established.
Disconnect is a packet that is sent when the remote connection is broken either intentionally or unintentionally.
Error is a packet that contains error information.
Event is a packet that contains event information.

# Variables

ErrUnexpectedType is returned when the decoder is trying to replace placeholders with []byte and encounters an unexpected type.
ErrWaitingForMorePackets is returned when the Decoder has not yet received enough BinaryPackets to fully decode a binary message.

# Structs

BinaryDecoder reconstructs BinaryEvents and BinaryAcks from multiple EnginePackets.
BinaryPlaceholder represents the position of a particular binary attachement in a string-encoded packet.
Packet is a Socket.IO packet.

# Type aliases

PacketType is the Socket.IO-defined type of this packet.