webf_websocket

Creator: coderz1093

Last updated:

0 purchases

webf_websocket Image
webf_websocket Images

Languages

Categories

Add to Cart

Description:

webf websocket

webf_websocket #
W3C compact WebSocket API support.
Installation #
First, add webf_websocket as a dependency in your pubspec.yaml file.
Second, add the following code before calling runApp():
import 'package:webf_websocket/webf_websocket.dart';
void main() {
WebFWebSocket.initialize();
runApp(MyApp());
}
copied to clipboard
Example #
let ws = new WebSocket('ws://127.0.0.1:8399');
ws.onopen = () => {
ws.send('helloworld');
};
ws.onmessage = (event) => {
console.log(event);
}
copied to clipboard
Contribute #
convert javascript code to quickjs bytecode:
webf qjsc --dart --pluginName webf_websocket ./lib/websocket.js ./lib/websocket_qjsc.dart
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.