Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

web-socket-server (sockjs)

To create a custom server implementation.

sockjs

This mode uses SockJS-node as a server.

webpack.config.js

module.exports = {
  // ...
  devServer: {
    webSocketServer: "sockjs",
  },
};

Usage via CLI:

npx webpack serve --web-socket-server sockjs --open

What Should Happen

  1. The script should open http://localhost:8080/ in your default browser.
  2. You should see the text on the page itself change to read Success!.