botika_socket_client 1.0.1 icon indicating copy to clipboard operation
botika_socket_client: ^1.0.1 copied to clipboard

Dartlang port of botika Socket Client for web, flutter, dartvm to use

Botika Socket Flutter Client #

This is the Botika Socket Flutter client.

Example Application #

By cloning this repository you can check the Flutter example application, a minimal application to connect to a channel and receive events.

Installation #

To integrate the plugin in your Flutter App, you need to add the plugin to your pubspec.yaml:

dependencies:
  botika_socket_client: '^1.0.0'

Initialization #

import 'package:botika_socket_client/botika_socket_client.dart' as Socket;

main() {
  var socket = Socket.client('https://socket.example.com', {'token': 'example'}) // or Socket.SocketClient('https://socket.example.com', {'token': 'example'});
  var channel = socket.channel('my-channel');
  channel.on('event', (data) => print(data));
}
1
likes
130
pub points
22%
popularity

Publisher

verified publisher iconbotika.online

Dartlang port of botika Socket Client for web, flutter, dartvm to use

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

socket_io_client

More

Packages that depend on botika_socket_client