Skip to content

Commit

Permalink
docs(examples): update cluster examples to Socket.IO v3
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jan 28, 2021
1 parent 0d10e61 commit cf873fd
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/cluster-haproxy/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM mhart/alpine-node:6
FROM node:14-alpine

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
RUN npm install --prod

# Bundle app source
COPY . /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions examples/cluster-haproxy/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"license": "BSD",
"dependencies": {
"express": "4.13.4",
"socket.io": "^1.7.2",
"socket.io-redis": "^3.0.0"
"socket.io": "^3.1.0",
"socket.io-redis": "^6.0.1"
},
"scripts": {
"start": "node index.js"
Expand Down
2 changes: 2 additions & 0 deletions examples/cluster-httpd/httpd/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Listen 80

ServerName localhost

LoadModule mpm_event_module modules/mod_mpm_event.so

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
Expand Down
2 changes: 1 addition & 1 deletion examples/cluster-httpd/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /usr/src/app

# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
RUN npm install --prod

# Bundle app source
COPY . /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions examples/cluster-httpd/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"license": "BSD",
"dependencies": {
"express": "4.13.4",
"socket.io": "^1.7.2",
"socket.io-redis": "^3.0.0"
"socket.io": "^3.1.0",
"socket.io-redis": "^6.0.1"
},
"scripts": {
"start": "node index.js"
Expand Down
2 changes: 1 addition & 1 deletion examples/cluster-nginx/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"license": "MIT",
"dependencies": {
"socket.io-client": "^2.4.0"
"socket.io-client": "^3.1.0"
},
"scripts": {
"start": "node index.js"
Expand Down
4 changes: 2 additions & 2 deletions examples/cluster-nginx/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"license": "MIT",
"dependencies": {
"express": "4.13.4",
"socket.io": "^1.7.2",
"socket.io-redis": "^3.0.0"
"socket.io": "^3.1.0",
"socket.io-redis": "^6.0.1"
},
"scripts": {
"start": "node index.js"
Expand Down

0 comments on commit cf873fd

Please sign in to comment.