Search packages, repositories and app categories

Package detailsv1.0.1

web_socket

Any easy-to-use library for communicating with WebSockets that has multiple implementations.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
11.5M
Likes
67
Pub points
160

Install package

flutter pub add web_socket

Package Overview

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

A simple and flexible Dart package for establishing and managing WebSocket connections across multiple platforms. It provides a consistent API for real-time communication between clients and servers, supporting both client and server-side implementations. Designed for ease of use, it integrates seamlessly with Flutter apps and other Dart projects, enabling bidirectional data exchange with minimal boilerplate. The library is maintained by the Dart team and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Real-time chat applications
  • Live data streaming
  • Online gaming
  • IoT device communication
  • Synchronized dashboards
  • Server-sent events

Key features

  • Cross-platform compatibility
  • Simple API for connection management
  • Supports both client and server roles
  • Built-in error handling
  • Automatic reconnection attempts
  • Lightweight and efficient

Suitable for

  • Developers building real-time features
  • Apps requiring persistent connections
  • Projects needing low-latency updates
  • Teams using Dart/Flutter for full-stack development
  • Applications targeting multiple platforms

Considerations

  • Requires a WebSocket server endpoint
  • May need custom logic for message serialization
  • Not suitable for one-off HTTP requests
  • Performance depends on network conditions
  • Authentication and security must be handled separately

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Build Status

A composable, Future-based library for making HTTP requests.

package:http contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser.

Packages

Package Description Version
cronet_http An Android Flutter plugin that provides access to the Cronet HTTP client. pub package
cupertino_http A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. pub package
flutter_http_example An Flutter app that demonstrates how to configure and use package:http. —
http A composable, multi-platform, Future-based API for HTTP requests. pub package
http2 A HTTP/2 implementation in Dart. pub package
http_client_conformance_tests A library that tests whether implementations of package:http's Client class behave as expected.
http_multi_server A dart:io HttpServer wrapper that handles requests from multiple servers. pub package
http_parser A platform-independent package for parsing and serializing HTTP formats. pub package
http_profile A library used by HTTP client authors to integrate with the DevTools Network View. pub package
ok_http An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. pub package
web_socket Any easy-to-use library for communicating with WebSockets that has multiple implementations. pub package
web_socket_channel StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. package issues
web_socket_conformance_tests A library that tests whether implementations of package:web_socket's WebSocket class behave as expected.

Contributing

If you'd like to contribute to any of these packages, see the Contributing Guide.

Categories

Dependencies

Dependency list 1 items

  • web>=0.5.0 <2.0.0

Source repository

Projects using this package