kraken_websocket 1.0.6 copy "kraken_websocket: ^1.0.6" to clipboard
kraken_websocket: ^1.0.6 copied to clipboard

outdated

W3C compact video tag support.

kraken_websocket #

W3C compact WebSocket API support.

Installation #

First, add kraken_websocket as a dependency in your pubspec.yaml file.

Second, add the following code before calling runApp():

import 'package:kraken_websocket/kraken_websocket.dart';
void main() {
  KrakenWebsocket.initialize();
  runApp(MyApp());
}

Example #

let ws = new WebSocket('ws://127.0.0.1:8399');
ws.onopen = () => {
    ws.send('helloworld');
};
ws.onmessage = (event) => {
    console.log(event);
}
0
likes
120
pub points
0%
popularity

Publisher

verified publisheropenkraken.com

W3C compact video tag support.

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, kraken, web_socket_channel

More

Packages that depend on kraken_websocket