sm_websocket

Creator: coderz1093

Last updated:

0 purchases

sm_websocket Image
sm_websocket Images

Languages

Categories

Add to Cart

Description:

sm websocket

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");
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.