socket_io_adapter 1.0.0 copy "socket_io_adapter: ^1.0.0" to clipboard
socket_io_adapter: ^1.0.0 copied to clipboard

Socket IO Adapter for Flutter. This package is a wrapper for the socket_io_client package. It provides a simple way to connect to a socket.io server and listen to events. It also provides a way to emi [...]

Getting started #

flutter pub add socket_io_adapter

Usage #

final socket = SocketIOAdapter.initializeOptions(SocketIOOptions(path: 'https://example.com:3000/'));
socket.checkResponse = (data) => data['status']['ok']; // this is method for checking response from server. You can use custom method for checking response
socket.connect();
socket.onAll({
    'disconnect': (data) => print('Disconnect'),
    'connect': (data) => print('Connect'),
    'error': (data) => print('Error'),
    'connect_error': (data) => print('Connect Error'),
    'your_event': (data) => print('Your Event'),
});
4
likes
0
pub points
50%
popularity

Publisher

verified publishercontributors.info

Socket IO Adapter for Flutter. This package is a wrapper for the socket_io_client package. It provides a simple way to connect to a socket.io server and listen to events. It also provides a way to emit events to the server.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, socket_io_client

More

Packages that depend on socket_io_adapter