Files
socket.io/examples/webpack-build-server
Damien Arrachequesne 5d16319692 docs(examples/webpack-build-server): update engine.io version
In order to include [0], which fixes the following error:

ERROR in ./node_modules/engine.io/lib/server.js
Module not found: Error: Can't resolve 'uws' in '/media/damien/git/other-bets/socket.io-parent/socket.io/examples/webpack-build-server/node_modules/engine.io/lib'
 @ ./node_modules/engine.io/lib/server.js 107:27-41
 @ ./node_modules/engine.io/lib/engine.io.js
 @ ./node_modules/socket.io/lib/index.js
 @ ./lib/index.js

[0] 85e544afd9
2020-06-04 16:36:19 +02:00
..

Socket.IO WebPack build

A sample Webpack build for the server.

How to use

$ npm i
$ npm run build
$ npm start

Note:

  • the bufferutil and utf-8-validate are optional dependencies from ws, compiled from native code, which are meant to improve performance (ref). You can also omit them, as they have their JS fallback, and ignore the WebPack warning.

  • the server is initiated with serveClient set to false, so it will not serve the client file.