|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <!-- |
3 | | - | Generated by Apache Maven Doxia Site Renderer 1.9.2 from src/site/markdown/initialization.md at 2021-04-27 |
| 3 | + | Generated by Apache Maven Doxia Site Renderer 1.9.2 from src/site/markdown/initialization.md at 2021-09-21 |
4 | 4 | | Rendered using Apache Maven Fluido Skin 1.9 |
5 | 5 | --> |
6 | 6 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
|
32 | 32 |
|
33 | 33 | <div id="breadcrumbs"> |
34 | 34 | <ul class="breadcrumb"> |
35 | | - <li id="publishDate">Last Published: 2021-04-27<span class="divider">|</span> |
| 35 | + <li id="publishDate">Last Published: 2021-09-21<span class="divider">|</span> |
36 | 36 | </li> |
37 | 37 | <li id="projectVersion">Version: 2.0.2-SNAPSHOT</li> |
38 | 38 | </ul> |
@@ -110,7 +110,7 @@ <h2><a name="Creation_of_a_Socket_instance"></a>Creation of a Socket instance</h |
110 | 110 | Socket socket = IO.socket("192.168.0.1:1234"); // NOT OK, missing the scheme part |
111 | 111 | </pre></div></div> |
112 | 112 |
|
113 | | -<p>The path represents the <a class="externalLink" href="https://socket.io/docs/v3/namespaces/">Namespace</a>, and not the actual path (see <a href="#path">below</a>) of the HTTP requests:</p> |
| 113 | +<p>The path represents the <a class="externalLink" href="https://socket.io/docs/v4/namespaces/">Namespace</a>, and not the actual path (see <a href="#path">below</a>) of the HTTP requests:</p> |
114 | 114 |
|
115 | 115 | <div class="source"> |
116 | 116 | <div class="source"><pre class="prettyprint">Socket socket = IO.socket(URI.create("https://example.com")); // the main namespace |
@@ -154,7 +154,7 @@ <h4><a name="forceNew"></a><code>forceNew</code></h4> |
154 | 154 | <p>Default value: <code>false</code></p> |
155 | 155 | <p>Whether to create a new Manager instance.</p> |
156 | 156 | <p>A Manager instance is in charge of the low-level connection to the server (established with HTTP long-polling or WebSocket). It handles the reconnection logic.</p> |
157 | | -<p>A Socket instance is the interface which is used to sends events to — and receive events from — the server. It belongs to a given <a class="externalLink" href="https://socket.io/docs/v3/namespaces">namespace</a>.</p> |
| 157 | +<p>A Socket instance is the interface which is used to sends events to — and receive events from — the server. It belongs to a given <a class="externalLink" href="https://socket.io/docs/v4/namespaces">namespace</a>.</p> |
158 | 158 | <p>A single Manager can be attached to several Socket instances.</p> |
159 | 159 | <p>The following example will reuse the same Manager instance for the 3 Socket instances (one single WebSocket connection):</p> |
160 | 160 |
|
@@ -202,7 +202,7 @@ <h4><a name="transports"></a><code>transports</code></h4> |
202 | 202 | Socket socket = IO.socket(URI.create("https://example.com"), options); |
203 | 203 | </pre></div></div> |
204 | 204 |
|
205 | | -<p>Note: in that case, sticky sessions are not required on the server side (more information <a class="externalLink" href="https://socket.io/docs/v3/using-multiple-nodes/">here</a>).</p></section><section> |
| 205 | +<p>Note: in that case, sticky sessions are not required on the server side (more information <a class="externalLink" href="https://socket.io/docs/v4/using-multiple-nodes/">here</a>).</p></section><section> |
206 | 206 | <h4><a name="upgrade"></a><code>upgrade</code></h4> |
207 | 207 | <p>Default value: <code>true</code></p> |
208 | 208 | <p>Whether the client should try to upgrade the transport from HTTP long-polling to something better.</p></section><section> |
@@ -237,7 +237,7 @@ <h4><a name="path"></a><code>path</code></h4> |
237 | 237 | Socket socket = IO.socket(URI.create("https://example.com"), options); |
238 | 238 | </pre></div></div> |
239 | 239 |
|
240 | | -<p>Please note that this is different from the path in the URI, which represents the <a class="externalLink" href="https://socket.io/docs/v3/namespaces/">Namespace</a>.</p> |
| 240 | +<p>Please note that this is different from the path in the URI, which represents the <a class="externalLink" href="https://socket.io/docs/v4/namespaces/">Namespace</a>.</p> |
241 | 241 | <p>Example:</p> |
242 | 242 |
|
243 | 243 | <div class="source"> |
@@ -323,7 +323,7 @@ <h3><a name="Socket_options"></a>Socket options</h3> |
323 | 323 | <p>These settings are specific to the given Socket instance.</p><section> |
324 | 324 | <h4><a name="auth"></a><code>auth</code></h4> |
325 | 325 | <p>Default value: -</p> |
326 | | -<p>Credentials that are sent when accessing a namespace (see also <a class="externalLink" href="https://socket.io/docs/v3/middlewares/#Sending-credentials">here</a>).</p> |
| 326 | +<p>Credentials that are sent when accessing a namespace (see also <a class="externalLink" href="https://socket.io/docs/v4/middlewares/#sending-credentials">here</a>).</p> |
327 | 327 | <p>Example:</p> |
328 | 328 | <p><i>Server</i></p> |
329 | 329 |
|
|
0 commit comments