Commit 6eacea43 authored by HelloRusk's avatar HelloRusk Committed by Tim Neutkens

updated module and removed old example in socket.io example (#6368)

parent b0a9b99b
...@@ -36,5 +36,3 @@ yarn dev ...@@ -36,5 +36,3 @@ yarn dev
## The idea behind the example ## 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. 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/)
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"next": "latest", "next": "latest",
"react": "^16.7.0", "react": "^16.7.0",
"react-dom": "^16.7.0", "react-dom": "^16.7.0",
"socket.io": "^1.7.3", "socket.io": "^2.2.0",
"socket.io-client": "^1.7.3" "socket.io-client": "^2.2.0"
}, },
"scripts": { "scripts": {
"dev": "node server.js", "dev": "node server.js",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment