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

outdated

WebSocket client for Dart.

websocket #

WebSocket client for Dart.

Getting Started #

import 'package:sm_websocket/sm_websocket.dart';

WebSocket ws = WebSocket();

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

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

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

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

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

Publisher

unverified uploader

WebSocket client for Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on sm_websocket