<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>WebSockets on Simple Enough Blog</title><link>https://blog-dev.simpleenough.net/fr/tags/websockets/</link><description>Recent content in WebSockets on Simple Enough Blog</description><generator>Hugo</generator><language>fr</language><lastBuildDate>Mon, 21 Apr 2025 16:06:29 +0200</lastBuildDate><atom:link href="https://blog-dev.simpleenough.net/fr/tags/websockets/index.xml" rel="self" type="application/rss+xml"/><item><title>Real-Time, Real-Easy : Déployez des WebSockets</title><link>https://blog-dev.simpleenough.net/fr/blog/websocket/</link><pubDate>Mon, 21 Apr 2025 16:06:29 +0200</pubDate><guid>https://blog-dev.simpleenough.net/fr/blog/websocket/</guid><description>&lt;h2 id="i-architecture-et-fonctionnement-du-protocole-websocket" class="heading">I. Architecture et fonctionnement du protocole WebSocket&lt;a href="#i-architecture-et-fonctionnement-du-protocole-websocket" aria-labelledby="i-architecture-et-fonctionnement-du-protocole-websocket">
&lt;!-- &lt;i class="fas fa-link anchor">&lt;/i> -->
 &lt;svg class="svg-inline--fa fas fa-link anchor" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 640 512">&lt;use href="#fas-link">&lt;/use>&lt;/svg>&amp;nbsp;
 &lt;/a>
&lt;/h2>
&lt;p>La mise en place d’un WebSocket repose sur un &lt;strong>handshake&lt;/strong> initial via HTTP(S), suivi d’une &lt;strong>mise à niveau&lt;/strong> du protocole vers WebSocket.&lt;/p>




&lt;h3 id="étapes-principales-" class="heading">Étapes principales :&lt;a href="#%c3%a9tapes-principales-" aria-labelledby="étapes-principales-">
&lt;!-- &lt;i class="fas fa-link anchor">&lt;/i> -->
 &lt;svg class="svg-inline--fa fas fa-link anchor" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 640 512">&lt;use href="#fas-link">&lt;/use>&lt;/svg>&amp;nbsp;
 &lt;/a>
&lt;/h3>






 






&lt;table class="table">
 &lt;thead>
 
 
 &lt;tr>
 &lt;th >Étape&lt;/th>
 &lt;th >Description&lt;/th>
 &lt;/tr>
 
 &lt;/thead>
 &lt;tbody>
 
 
 &lt;tr>
 &lt;td >1. HTTP Upgrade&lt;/td>
 &lt;td >Le client envoie une requête HTTP avec l’en-tête &lt;code>Upgrade: websocket&lt;/code>.&lt;/td>
 &lt;/tr>
 
 
 
 &lt;tr>
 &lt;td >2. Acceptation&lt;/td>
 &lt;td >Le serveur valide l’upgrade et bascule en mode WebSocket.&lt;/td>
 &lt;/tr>
 
 
 
 &lt;tr>
 &lt;td >3. Communication&lt;/td>
 &lt;td >Les données sont échangées en &lt;strong>frames&lt;/strong>, de manière asynchrone et bidirectionnelle.&lt;/td>
 &lt;/tr>
 
 &lt;/tbody>
&lt;/table>&lt;p>Exemple d&amp;rsquo;en-tête d&amp;rsquo;upgrade :&lt;/p></description></item></channel></rss>