socketio

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package socketio parses Socket.IO event-style packets from text frames.

The parser is intentionally lightweight so higher-level proxy packages can optionally decode Socket.IO traffic without taking a hard dependency on a specific capture or storage model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEvent

func ParseEvent(s string) (string, string, string, bool)

ParseEvent tries to parse a Socket.IO v4/v3 event-like packet from a text frame. Supported types:

  • "42" EVENT: 42[/nsp][,ack][args]
  • "45" BINARY_EVENT: 45<attachments>-[/nsp][,ack][args]
  • "43" ACK: 43[/nsp][,ack][args]
  • "46" BINARY_ACK: 46<attachments>-[/nsp][,ack][args]

Returns (namespace, event, argsJSON, ok).

Types

This section is empty.

Jump to

Keyboard shortcuts

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