sm_websocket 0.0.7 copy "sm_websocket: ^0.0.7" to clipboard
sm_websocket: ^0.0.7 copied to clipboard

WebSocket client for Dart.

websocket #

WebSocket client for Dart.

Getting Started #

import 'package:sm_websocket/sm_websocket.dart';

IWebSocket ws = WebSocket();

ws.onSuccess(() {
print("连接成功");
});

ws.onFailure(() {
print("连接失败");
});

ws.onMessage((data) {
print(data);
});

ws.onClose(() {
print("断开连接");
});

ws.open("ws://127.0.0.1:6656/ws");
3
likes
110
pub points
56%
popularity

Publisher

unverified uploader

WebSocket client for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on sm_websocket