adhara_socket_io 0.1.3 copy "adhara_socket_io: ^0.1.3" to clipboard
adhara_socket_io: ^0.1.3 copied to clipboard

outdated

Websocket by socket.io for flutter by adhara, supports both iOS and Android

adhara_socket_io #

socket.io for flutter by adhara

supports both Android and iOS

Usage:

See example/lib/main.dart for better example


    SocketIO socket = await SocketIOManager().createInstance('http://192.168.1.2:7000/');       //TODO change the port  accordingly
    socket.onConnect((data){
      print("connected...");
      print(data);
      socket.emit("message", ["Hello world!"]);
    });
    socket.on("news", (data){   //sample event
      print("news");
      print(data);
    });
    socket.connect();

86
likes
0
pub points
66%
popularity

Publisher

verified publisherinfitio.com

Websocket by socket.io for flutter by adhara, supports both iOS and Android

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on adhara_socket_io