Skip to content
pubscout

socket_io_common

3.1.1, released 2 years ago by an unverified publisher

Socket.io common parser library for Dart.

WASM-ready
$ flutter pub add socket_io_common
Source repository

What it does

Provides the core parsing logic for Socket.io packets and events. Handles encoding/decoding of data, including binary buffers, and offers utilities for event emission and disposal.

AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to communicate with a Socket.io server from a Dart/Flutter app
  • You require cross‑platform support including web (WASM) and native platforms
  • You want a lightweight, pure‑Dart implementation without native dependencies

Skip it when

  • You are not using Socket.io as your backend protocol
  • You need a full client library that also manages connections (use socket_io_client)

Strengths

  • Cross‑platform including web (WASM)
  • Active bug‑fix releases for recent Socket.io versions
  • Small dependency footprint (only logging)

Weaknesses

  • Only provides parsing; you still need a client for connection handling
  • Documentation is minimal

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

Alternatives

Packages that do the same job and could replace socket_io_common.

  • fresh

    Core token refresh library for managing authentication token lifecycles.

  • mqtt5_client

    A server and browser based MQTT Version 5 client for Dart supporting TCP and WebSockets.

  • mqtt_client

    A Dart MQTT client supporting TCP, WebSocket, secure connections and all QoS levels.

  • webdav_client_plus

    A simple WebDAV client for Dart and Flutter supporting file operations and extensions.

Works with

Packages commonly used together with socket_io_common: ones it builds on, ones built on it, and its own family.