This a simple approach of implementing live chat in flutter apps using flutter_bloc package and socket.io library.

What's in the box ? A minimal WebSocket server written in go. Inside this server we'll only handle one type of event which is message.
We will have a socket connexion open once our widget is called then we'll close it once we done with it.
For some reasons it doesn't work on Android emulator
Clone this repository
install dependencies
flutter pub getgenerate files
flutter pub run build_runner build --delete-conflicting-outputsLaunch your favorite GoLang IDE, copy the files inside the server folder, then ..
go run main.goThe server will run on port :8000
e-mail: [email protected]
LinkedIn: Soma Bini