[go: up one dir, main page]

0% found this document useful (0 votes)
42 views1 page

SocketIO - Flutter

What is Web Socket & Socket IO? Web socket is a two-way, full duplex communication technology, in which the transmission of data is real-time and bi-directional. While Socket.io is a popular library used to implement web sockets. In this article, we will see how to integrate socket requests in Flutter.

Uploaded by

Bzizrqh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

SocketIO - Flutter

What is Web Socket & Socket IO? Web socket is a two-way, full duplex communication technology, in which the transmission of data is real-time and bi-directional. While Socket.io is a popular library used to implement web sockets. In this article, we will see how to integrate socket requests in Flutter.

Uploaded by

Bzizrqh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

https://medium.

com/flutter-community/flutter-integrating-socket-io-client-2a8f6e208810

Socket.Io, Flutter

Socket.Io Web Socket


Is a popular library Is a two-way, full duplex
used to implement communication technology, in
web sockets. which the transmission of data is
real-time and bi-directional

How does it work?

Flutter app will be considered as a Client

Backend is considered as Server 

We will be establishing a bi-directional and real-time data transmission


between them using Socket IO

Steps we need to follow for successful data transmission.

1. First, we have to build a connection with the server.

2. Your app will be listening to events, so if a new event arrives, your UI


will reflect it immediately (Like listening to new messages in Chat).

3. You can emit events, maybe when you want to broadcast some data to
your backend (Like emitting a new message to Chat).

4. Don’t forget to close the connection between client and server.

You might also like