flutter_websocket_plus 0.0.1 copy "flutter_websocket_plus: ^0.0.1" to clipboard
flutter_websocket_plus: ^0.0.1 copied to clipboard

WebSocket connection management with reconnection logic and message queuing. Supports all 6 platforms with WASM compatibility.

example/example.dart

import 'package:flutter_websocket_plus/flutter_websocket_plus.dart';

void main() {
  // Example usage of flutter_websocket_plus
  print('flutter_websocket_plus example');

  // Create configuration
  final config = WebSocketConfig(
    url: 'wss://echo.websocket.org',
    enableReconnection: true,
    enableMessageQueue: true,
  );

  // Create manager
  final manager = WebSocketManager(config: config);

  print('WebSocket manager created with config: ${config.url}');
  print('Reconnection enabled: ${config.enableReconnection}');
  print('Message queue enabled: ${config.enableMessageQueue}');
  print('Manager instance: $manager');
}
2
likes
160
points
27
downloads

Publisher

verified publisherbechattaoui.dev

Weekly Downloads

WebSocket connection management with reconnection logic and message queuing. Supports all 6 platforms with WASM compatibility.

Repository (GitHub)
View/report issues

Topics

#websocket #networking #real-time #communication #reconnection

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, http, web_socket_channel

More

Packages that depend on flutter_websocket_plus