flutter_socket_io 0.0.14 copy "flutter_socket_io: ^0.0.14" to clipboard
flutter_socket_io: ^0.0.14 copied to clipboard

outdated

Flutter Socket IO

flutter_socket_io #

Flutter Socket IO

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

API Methods #

String getId(); #

You can export the current file by clicking Export to disk in the menu. You can choose to export the file as plain Markdown, as HTML using a Handlebars template or as a PDF.

void connect(); #

Create a new socket and connects the client

void sendMessage(String event, dynamic message, [Function callback]); #

Send a message via a channel (i.e. event)

void subscribe(String event, Function callback); #

Subscribe to a channel with a callback

void unSubscribe(String event, [Function callback]); #

Unsubscribe from a channel. When no callback is provided, unsubscribe all subscribers of the channel. Otherwise, unsubscribe only the callback passed in

void unSubscribesAll(); #

Unsubscribe all subscribers from all channels

void disconnect(); #

Disconnect from the socket

void destroy(); #

Destroy the socket and cleanup all memory usage

66
likes
0
pub points
79%
popularity

Publisher

unverified uploader

Flutter Socket IO

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_socket_io