Skip to content

smartwalle/sm_websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages