J
J
jdQiwi2019-04-14 20:41:54
Mobile development
jdQiwi, 2019-04-14 20:41:54

What is the best technology to use to transfer data between server and android/ios in real time?

What is the best technology to use to transfer data between server (spring-boot) and android/ios in real time: socket, websocket, socketio, long-polling, etc.. ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2019-04-16
@2ord

WebSocket is better than long-polling for "real time", it's a full-duplex connection.
Besides,

Socket.IO primarily uses the WebSocket protocol with polling as a fallback option, while providing the same interface. Although it can be used as simply a wrapper for WebSocket, it provides many more features, including broadcasting to multiple sockets, storing data associated with each client, and asynchronous I/O.

If we are talking about a client-web browser, then you can still use Server-Sent Events (SSE).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question