You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/site/markdown/initialization.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Socket socket = IO.socket("wss://example.com"); // OK, similar to the example ab
25
25
Socket socket =IO.socket("192.168.0.1:1234"); // NOT OK, missing the scheme part
26
26
```
27
27
28
-
The path represents the [Namespace](https://socket.io/docs/v3/namespaces/), and not the actual path (see [below](#path)) of the HTTP requests:
28
+
The path represents the [Namespace](https://socket.io/docs/v4/namespaces/), and not the actual path (see [below](#path)) of the HTTP requests:
29
29
30
30
```java
31
31
Socket socket =IO.socket(URI.create("https://example.com")); // the main namespace
@@ -76,7 +76,7 @@ Whether to create a new Manager instance.
76
76
77
77
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.
78
78
79
-
A Socket instance is the interface which is used to sends events to — and receive events from — the server. It belongs to a given [namespace](https://socket.io/docs/v3/namespaces).
79
+
A Socket instance is the interface which is used to sends events to — and receive events from — the server. It belongs to a given [namespace](https://socket.io/docs/v4/namespaces).
80
80
81
81
A single Manager can be attached to several Socket instances.
**Important note:** due to the backward incompatible changes to the Socket.IO protocol, a 2.x Java client will not be able to reach a 2.x server, and vice-versa
14
14
15
-
Since the Java client matches the Javascript client quite closely, most of the changes listed in the migration guide [here](https://socket.io/docs/v3/migrating-from-2-x-to-3-0) also apply to the Java client:
15
+
Since the Java client matches the Javascript client quite closely, most of the changes listed in the migration guide [here](https://socket.io/docs/v4/migrating-from-2-x-to-3-0) also apply to the Java client:
16
16
17
17
-[A middleware error will now emit an Error object](#A_middleware_error_will_now_emit_an_Error_object)
18
18
-[The Socket `query` option is renamed to `auth`](#The_Socket_query_option_is_renamed_to_auth)
Copy file name to clipboardExpand all lines: src/site/markdown/socket_instance.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ socket.on("data", new Emitter.Listener() {
113
113
114
114
### `Socket.EVENT_CONNECT_ERROR`
115
115
116
-
This event is fired when the server does not accept the connection (in a [middleware function](https://socket.io/docs/v3/middlewares/#Sending-credentials)).
116
+
This event is fired when the server does not accept the connection (in a [middleware function](https://socket.io/docs/v4/middlewares/#sending-credentials)).
117
117
118
118
You need to manually reconnect. You might need to update the credentials:
119
119
@@ -144,7 +144,7 @@ Here is the list of possible reasons:
144
144
145
145
Reason | Description
146
146
------ | -----------
147
-
`io server disconnect` | The server has forcefully disconnected the socket with [socket.disconnect()](https://socket.io/docs/v3/server-api/#socket-disconnect-close)
147
+
`io server disconnect` | The server has forcefully disconnected the socket with [socket.disconnect()](https://socket.io/docs/v4/server-api/#socketdisconnectclose)
148
148
`io client disconnect` | The socket was manually disconnected using `socket.disconnect()`
149
149
`ping timeout` | The server did not respond in the `pingTimeout` range
150
150
`transport close` | The connection was closed (example: the user has lost connection, or the network was changed from WiFi to 4G)
0 commit comments