Skip to content

Commit

Permalink
updated module and removed old example in socket.io example (vercel#6368
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kaisugi authored and timneutkens committed Feb 20, 2019
1 parent b0a9b99 commit 6eacea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions examples/with-socket.io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ yarn dev

## The idea behind the example

This example show how to use [socket.io](https://socket.io/) inside a Next.js application. It uses `getInitialProps` to fetch the old messages from a HTTP endpoint as if it was a Rest API. The example combine the WebSocket server with the Next server, in a production application you should split them as different services.

**Example:** [https://next-socket-io.now.sh/](https://next-socket-io.now.sh/)
This example show how to use [socket.io](https://socket.io/) inside a Next.js application. It uses `getInitialProps` to fetch the old messages from a HTTP endpoint as if it was a Rest API. The example combine the WebSocket server with the Next server, in a production application you should split them as different services.
4 changes: 2 additions & 2 deletions examples/with-socket.io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"socket.io": "^1.7.3",
"socket.io-client": "^1.7.3"
"socket.io": "^2.2.0",
"socket.io-client": "^2.2.0"
},
"scripts": {
"dev": "node server.js",
Expand Down

0 comments on commit 6eacea4

Please sign in to comment.