Skip to content

Protocols

Maria Husmann edited this page Feb 16, 2024 · 1 revision

How would you build a cross-device application? How can devices communicate with each other? Which protocols do you know? How do you choose the right one?

WebSockets and Socket.io

Socket.io is a library for real-time, bidirectional and event-based communication. Under the hood it uses WebSockets, but is a bit easier to use and provides additional functionality on top. You can work through the Socket.io tutorial or work with me one one the examples based on socket.io

Resources

HTTP

Websocket

WebRTC

Server-sent events