FLUTTER ECOSYSTEM

sockjs_client_wrapper

A Dart wrapper for the `sockjs-client` JS library.

Latest version
1.5.0
30-day downloads
28.5K
Likes
0
Pub points
120

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart wrapper for the `sockjs-client` JavaScript library, enabling WebSocket-like communication in Flutter web applications. It provides a simple interface to establish and manage connections with SockJS servers, supporting real-time data exchange over various transport methods including WebSockets, long polling, and more. The package is designed specifically for web platforms and integrates seamlessly into Flutter web projects. It abstracts low-level details, making it easier to handle events like connection open, message receipt, and errors.

Use cases
  • Real-time chat applications
  • Live dashboard updates
  • Web-based collaborative tools
  • Event-driven web interfaces
  • Server-sent notifications
Key features
  • Cross-transport compatibility
  • Simple event-driven API
  • Seamless integration with Flutter web
  • Automatic fallback to alternative transports
  • Support for connection state management
Suitable for
  • Flutter web developers needing real-time features
  • Projects using SockJS servers
  • Applications requiring reliable client-server communication
  • Developers seeking lightweight WebSocket alternatives
  • Use cases where browser compatibility is critical
Considerations
  • Only supports web platform
  • Relies on JavaScript interop
  • May require additional error handling for network issues
  • Limited to SockJS server endpoints
  • Not suitable for mobile or desktop apps
Supported platformsWeb

Install package

flutter pub add sockjs_client_wrapper

Categories

Dependencies

Dependency list 2 items
  • js^0.6.1
  • w_common>=2.0.0 <5.0.0

Source repository

Related projects