summaryrefslogtreecommitdiffstats
path: root/docs/en/gun/2.0/guide/websocket/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/en/gun/2.0/guide/websocket/index.html')
-rw-r--r--docs/en/gun/2.0/guide/websocket/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/en/gun/2.0/guide/websocket/index.html b/docs/en/gun/2.0/guide/websocket/index.html
index 2d6b8c9c..b407ad4e 100644
--- a/docs/en/gun/2.0/guide/websocket/index.html
+++ b/docs/en/gun/2.0/guide/websocket/index.html
@@ -91,7 +91,7 @@ http://www.gnu.org/software/src-highlite -->
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-<pre><tt><b><font color="#000000">gun:ws_upgrade</font></b>(<font color="#009900">ConnPid</font>, <font color="#FF0000">"/websocket"</font>, []
+<pre><tt><font color="#009900">StreamRef</font> <font color="#990000">=</font> <b><font color="#000000">gun:ws_upgrade</font></b>(<font color="#009900">ConnPid</font>, <font color="#FF0000">"/websocket"</font>, []
#{<font color="#0000FF">protocols</font> <font color="#990000">=&gt;</font> [{<font color="#990000">&lt;&lt;</font><font color="#FF0000">"xmpp"</font><font color="#990000">&gt;&gt;</font>, <font color="#FF6600">gun_ws_h</font>}]})<font color="#990000">.</font></tt></pre>
</div></div>
<p>The upgrade will fail if the server cannot satisfy the protocol negotiation.</p>
@@ -115,20 +115,20 @@ http://www.gnu.org/software/src-highlite -->
</div></div>
<h2 id="_sending_data">Sending data</h2>
<p>Once the Websocket upgrade has completed successfully, you no longer have access to functions for performing requests. You can only send and receive Websocket messages.</p>
-<p>Use <code>gun:ws_send/2</code> to send messages to the server.</p>
+<p>Use <code>gun:ws_send/3</code> to send messages to the server.</p>
<div class="listingblock"><div class="title">Send a text frame</div>
<div class="content"><!-- Generator: GNU source-highlight 3.1.9
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-<pre><tt><b><font color="#000000">gun:ws_send</font></b>(<font color="#009900">ConnPid</font>, {<font color="#FF6600">text</font>, <font color="#FF0000">"Hello!"</font>})<font color="#990000">.</font></tt></pre>
+<pre><tt><b><font color="#000000">gun:ws_send</font></b>(<font color="#009900">ConnPid</font>, <font color="#009900">StreamRef</font>, {<font color="#FF6600">text</font>, <font color="#FF0000">"Hello!"</font>})<font color="#990000">.</font></tt></pre>
</div></div>
<div class="listingblock"><div class="title">Send a text frame, a binary frame and then close the connection</div>
<div class="content"><!-- Generator: GNU source-highlight 3.1.9
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-<pre><tt><b><font color="#000000">gun:ws_send</font></b>(<font color="#009900">ConnPid</font>, [
+<pre><tt><b><font color="#000000">gun:ws_send</font></b>(<font color="#009900">ConnPid</font>, <font color="#009900">StreamRef</font>, [
{<font color="#FF6600">text</font>, <font color="#FF0000">"Hello!"</font>},
{<b><font color="#000080">binary</font></b>, <font color="#009900">BinaryValue</font>},
<font color="#FF6600">close</font>
@@ -165,8 +165,8 @@ http://www.gnu.org/software/src-highlite -->
- <a style="float:right" href="https://ninenines.eu/docs/en/gun/2.0/guide/migrating_from_1.3/">
- Migrating from Gun 1.3 to 2.0
+ <a style="float:right" href="https://ninenines.eu/docs/en/gun/2.0/guide/internals_tls_over_tls/">
+ Internals: TLS over TLS
</a>
</nav>