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: socket.io/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Socket.io is the simples way to work with WebSockets in Node.js
4
4
5
5
This example shows how to setup socket.io inside a Express server and together with a Remix app and how to connect from the browser.
6
6
7
-
To run this example, run `npm run start:dev` to start the server and `npm run dev` to watch for changes in the app.
7
+
To run this example, run `npm run dev`.
8
8
9
9
> Note: The code here needs the Express adapter and because of that it needs Node.js. This is only deployable to platforms supporting a persistent running process (unlike Serverless platforms).
10
10
@@ -16,15 +16,15 @@ Open this example on [CodeSandbox](https://codesandbox.com):
16
16
17
17
## Example
18
18
19
-
This examples uses the Express adapter to setup the HTTP server.
19
+
This example uses the Express adapter to setup the HTTP server.
20
20
21
21
Then it attaches socket.io to it and listens for a few basic events.
22
22
23
23
Client-side, it imports `io` from `socket.io-client` and uses it to connect to the WebSocket server on the root component.
24
24
25
25
It stores the socket instance in a React context and make it available for the whole app.
26
26
27
-
In the `routes/index` file it accesses the socket instance to listen for more events and renders a button which sends a message to the server on each click.
27
+
In the `routes/_index` file, it accesses the socket instance to listen for more events and renders a button which sends a message to the server on each click.
0 commit comments