cereb_frontend_websocket_shadow_sdk

Creator: coderz1093

Last updated:

0 purchases

cereb_frontend_websocket_shadow_sdk Image
cereb_frontend_websocket_shadow_sdk Images

Languages

Categories

Add to Cart

Description:

cereb frontend websocket shadow sdk

frontend-websocket-shadow-sdk #
使用方法 #
pubspec.yaml
git
dependencies:
frontend_websocket_shadow_sdk:
git:
url: git://github.com/cereb-ai/frontend-websocket-shadow-sdk.git
ref: main
copied to clipboard
本地
dependencies:
frontend_websocket_shadow_sdk:
path: /path/to/frontend-websocket-shadow-sdk
copied to clipboard
客户端
final client = CerebWebsocketShadowSdk(
url: "https://dev-api.cereb.ai/v1/ws/shadow_websocket",
path: "/user/topic/shadow_websocket",
id: "A791716517900154M",
);
client.connect();
client.subscribe(
'/user/topic/shadow_websocket',
(StompFrame frame) {
log(frame.body ?? 'null');
},
);
client.send('test');
client.unsubscribe('/user/topic/shadow_websocket');
client.disconnect();
copied to clipboard
服务器配置

发送消息

单元测试 #
flutter test
copied to clipboard
参考项目 #
frontend-iotena-app
发布项目 #
github action

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.