From 90b540e519c8b704d9dc6db5afff49ab519a4428 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 13 Feb 2024 16:33:34 +0100 Subject: [PATCH] Start websockets documentation --- docs/rpi-documentation/websockets.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/rpi-documentation/websockets.md b/docs/rpi-documentation/websockets.md index ff80e29..c5a612e 100644 --- a/docs/rpi-documentation/websockets.md +++ b/docs/rpi-documentation/websockets.md @@ -1,3 +1,14 @@ # Websockets -## Introduction \ No newline at end of file +## Introduction +### Why are we going to use websockets? +With websockets you can establish a connection between the client and the server, and both can send data fast to each other. This is useful for real-time applications like for our project to plot live graphs of the data we are collecting from the sensors. + +### How to use websockets +There are different languages to serve websockets with, but we are going to use Python with the library `websockets`. This library is easy to use and has a lot of documentation. + + + + +#### Sources: +* https://websockets.readthedocs.io/en/stable/index.html \ No newline at end of file