flutter_socket_io 0.0.12 flutter_socket_io: ^0.0.12 copied to clipboard
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