websocket_universal 0.0.1-dev copy "websocket_universal: ^0.0.1-dev" to clipboard
websocket_universal: ^0.0.1-dev copied to clipboard

outdated

Convenient websocket handler for all platforms (both IO and web/HTML). Websocket messages routing, statuses and other features have easy-to-use interface.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add websocket_universal

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  websocket_universal: ^0.0.1-dev

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:websocket_universal/web_socket.dart';
import 'package:websocket_universal/websocket_base/enums/socket_log_event_type.dart';
import 'package:websocket_universal/websocket_base/enums/socket_status_type.dart';
import 'package:websocket_universal/websocket_base/interfaces/message_processor.dart';
import 'package:websocket_universal/websocket_base/interfaces/message_to_server.dart';
import 'package:websocket_universal/websocket_base/interfaces/socket_log_event.dart';
import 'package:websocket_universal/websocket_base/interfaces/socket_message.dart';
import 'package:websocket_universal/websocket_base/interfaces/socket_state.dart';
import 'package:websocket_universal/websocket_base/interfaces/socket_topic.dart';
import 'package:websocket_universal/websocket_base/interfaces/websocket_handler.dart';
import 'package:websocket_universal/websocket_base/models/message_to_server_impl.dart';
import 'package:websocket_universal/websocket_base/models/message_to_server_impl.g.dart';
import 'package:websocket_universal/websocket_base/models/socket_log_event_impl.dart';
import 'package:websocket_universal/websocket_base/models/socket_message_impl.dart';
import 'package:websocket_universal/websocket_base/models/socket_message_impl.g.dart';
import 'package:websocket_universal/websocket_base/models/socket_state_impl.dart';
import 'package:websocket_universal/websocket_base/models/socket_topic_impl.dart';
import 'package:websocket_universal/websocket_base/services/socket_message_processor.dart';
import 'package:websocket_universal/websocket_base/services/websocket_handler_html.dart';
import 'package:websocket_universal/websocket_base/services/websocket_handler_io.dart';
import 'package:websocket_universal/websocket_base/services/websocket_handler_mock.dart';
34
likes
0
pub points
86%
popularity

Publisher

verified publisherdvmatyun.ru

Convenient websocket handler for all platforms (both IO and web/HTML). Websocket messages routing, statuses and other features have easy-to-use interface.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

json_annotation, meta

More

Packages that depend on websocket_universal