Dart port of the Socket.IO client, for Flutter, the web and the Dart VM
open sourceMITfree
socket.io-client-dart (package socket_io_client) is a Dart port of the JavaScript Socket.IO client, for Flutter apps, Dart web apps and the Dart VM. It connects to Socket.IO servers (version 3.x of the package speaks to Socket.IO 4.7 and later; 2.x to 3.0–4.6; 1.x to 2.x), emits and listens for events on namespaces, supports acknowledgements both ways, extra headers, manual and automatic reconnection with its connection events, and a custom WebSocket connector (for example Cupertino or Cronet WebSockets, or a dart:io client with its own TLS or proxy).
Problems it solves
- connect my Flutter app to an existing Socket.IO server
- receive realtime events from a Node.js Socket.IO backend in Dart
- emit an event from Flutter and get an acknowledgement back from the server
Features
- connects Flutter, web and Dart VM apps to Socket.IO servers
- events, namespaces and acknowledgements
- reconnection with connection events
- custom WebSocket connectors for native TLS or proxies
Alternatives
The same job
These do what socket.io-client-dart does.
- Centrifugo Scalable realtime messaging and state sync for any stack
- Pusher Channels Hosted WebSocket pub/sub API for realtime features in web and mobile apps