Skip to content

Commit 1c9f900

Browse files
committed
errata corrige
1 parent 283c89a commit 1c9f900

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

content/notes/python/web/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ menu:
1010
---
1111
<!-- A Sample Program -->
1212
{{< note title="Connect to a Websocket">}}
13-
A sample **python** program is show here.
13+
A sample **python** program is shown here.
1414

1515
```python
1616
import websocket

public/index.json

+1-1
Large diffs are not rendered by default.

public/index.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Ampère&amp;rsquo;s circuital law: $$ \oint_{\partial \Omega} \mathbf{B} \cdot d
141141
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
142142

143143
<guid>http://localhost:1313/notes/python/web/</guid>
144-
<description>Connect to a Websocket A sample python program is show here.
144+
<description>Connect to a Websocket A sample python program is shown here.
145145
import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&amp;#34;Encountered error: {error}&amp;#34;) def on_close(ws, close_status_code, close_msg): print(&amp;#34;Connection closed&amp;#34;) def on_open(ws): print(&amp;#34;Connection opened&amp;#34;) ws.send(&amp;#34;Hello, Worldy!&amp;#34;) if __name__ == &amp;#34;__main__&amp;#34;: ws = websocket.WebSocketApp(&amp;#34;ws://localhost:xxxx&amp;#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below:
146146
$ python websocket_example.py --&gt;</description>
147147
</item>

public/notes/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ <h5 class="note-title"><span>Maxwell Equation (Differential)</span></h5>
378378
<h5 class="note-title"><span>Connect to a Websocket</span></h5>
379379

380380
<div class="card">
381-
<div class="card-body"><p>A sample <strong>python</strong> program is show here.</p>
381+
<div class="card-body"><p>A sample <strong>python</strong> program is shown here.</p>
382382
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">import</span> websocket
383383
</span></span><span style="display:flex;"><span>
384384
</span></span><span style="display:flex;"><span>

public/notes/index.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Ampère&amp;rsquo;s circuital law: $$ \oint_{\partial \Omega} \mathbf{B} \cdot d
3737
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
3838

3939
<guid>http://localhost:1313/notes/python/web/</guid>
40-
<description>Connect to a Websocket A sample python program is show here.
40+
<description>Connect to a Websocket A sample python program is shown here.
4141
import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&amp;#34;Encountered error: {error}&amp;#34;) def on_close(ws, close_status_code, close_msg): print(&amp;#34;Connection closed&amp;#34;) def on_open(ws): print(&amp;#34;Connection opened&amp;#34;) ws.send(&amp;#34;Hello, Worldy!&amp;#34;) if __name__ == &amp;#34;__main__&amp;#34;: ws = websocket.WebSocketApp(&amp;#34;ws://localhost:xxxx&amp;#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below:
4242
$ python websocket_example.py --&gt;</description>
4343
</item>

public/notes/python/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
<h5 class="note-title"><span>Connect to a Websocket</span></h5>
321321

322322
<div class="card">
323-
<div class="card-body"><p>A sample <strong>python</strong> program is show here.</p>
323+
<div class="card-body"><p>A sample <strong>python</strong> program is shown here.</p>
324324
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">import</span> websocket
325325
</span></span><span style="display:flex;"><span>
326326
</span></span><span style="display:flex;"><span>

public/notes/python/index.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
1212

1313
<guid>http://localhost:1313/notes/python/web/</guid>
14-
<description>Connect to a Websocket A sample python program is show here.
14+
<description>Connect to a Websocket A sample python program is shown here.
1515
import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&amp;#34;Encountered error: {error}&amp;#34;) def on_close(ws, close_status_code, close_msg): print(&amp;#34;Connection closed&amp;#34;) def on_open(ws): print(&amp;#34;Connection opened&amp;#34;) ws.send(&amp;#34;Hello, Worldy!&amp;#34;) if __name__ == &amp;#34;__main__&amp;#34;: ws = websocket.WebSocketApp(&amp;#34;ws://localhost:xxxx&amp;#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below:
1616
$ python websocket_example.py --&gt;</description>
1717
</item>

public/notes/python/web/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
<meta property="og:url" content="http://localhost:1313/notes/python/web/">
2727
<meta property="og:site_name" content="Stefano Giannini">
2828
<meta property="og:title" content="WebSocket">
29-
<meta property="og:description" content="Connect to a Websocket A sample python program is show here. import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&#34;Encountered error: {error}&#34;) def on_close(ws, close_status_code, close_msg): print(&#34;Connection closed&#34;) def on_open(ws): print(&#34;Connection opened&#34;) ws.send(&#34;Hello, Worldy!&#34;) if __name__ == &#34;__main__&#34;: ws = websocket.WebSocketApp(&#34;ws://localhost:xxxx&#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below: $ python websocket_example.py --&gt;">
29+
<meta property="og:description" content="Connect to a Websocket A sample python program is shown here. import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&#34;Encountered error: {error}&#34;) def on_close(ws, close_status_code, close_msg): print(&#34;Connection closed&#34;) def on_open(ws): print(&#34;Connection opened&#34;) ws.send(&#34;Hello, Worldy!&#34;) if __name__ == &#34;__main__&#34;: ws = websocket.WebSocketApp(&#34;ws://localhost:xxxx&#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below: $ python websocket_example.py --&gt;">
3030
<meta property="og:locale" content="en">
3131
<meta property="og:type" content="article">
3232
<meta property="article:section" content="notes">
3333

3434

3535
<meta name="twitter:card" content="summary">
3636
<meta name="twitter:title" content="WebSocket">
37-
<meta name="twitter:description" content="Connect to a Websocket A sample python program is show here. import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&#34;Encountered error: {error}&#34;) def on_close(ws, close_status_code, close_msg): print(&#34;Connection closed&#34;) def on_open(ws): print(&#34;Connection opened&#34;) ws.send(&#34;Hello, Worldy!&#34;) if __name__ == &#34;__main__&#34;: ws = websocket.WebSocketApp(&#34;ws://localhost:xxxx&#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below: $ python websocket_example.py --&gt;">
37+
<meta name="twitter:description" content="Connect to a Websocket A sample python program is shown here. import websocket def on_message(ws, message): print(message) def on_error(ws, error): print(f&#34;Encountered error: {error}&#34;) def on_close(ws, close_status_code, close_msg): print(&#34;Connection closed&#34;) def on_open(ws): print(&#34;Connection opened&#34;) ws.send(&#34;Hello, Worldy!&#34;) if __name__ == &#34;__main__&#34;: ws = websocket.WebSocketApp(&#34;ws://localhost:xxxx&#34;, # insert here you websocket addres on_message=on_message, on_error=on_error, on_close=on_close) ws.on_open = on_open ws.run_forever() Run the program as below: $ python websocket_example.py --&gt;">
3838

3939

4040

@@ -321,7 +321,7 @@
321321
<h5 class="note-title"><span>Connect to a Websocket</span></h5>
322322

323323
<div class="card">
324-
<div class="card-body"><p>A sample <strong>python</strong> program is show here.</p>
324+
<div class="card-body"><p>A sample <strong>python</strong> program is shown here.</p>
325325
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#f92672">import</span> websocket
326326
</span></span><span style="display:flex;"><span>
327327
</span></span><span style="display:flex;"><span>

0 commit comments

Comments
 (0)