API
These are the parameters you can pass to the constructor.
route[String]: What Express route to put the client-side JS file on. Default:/express-browser-reload.js.skipDeletingConnections[Boolean]: Whether to skip cleaning up connections when your app closes the Express server.express-browser-reloadholds a WebSocket open to every page it is loaded on, and a socket handed off to anupgradelistener stops being tracked by the server, so an open WebSocket would otherwise keepserver.close()from ever finishing. By defaultexpress-browser-reloadwrapsserver.close()so that closing the server destroys the WebSockets it opened and calls Node'sserver.closeIdleConnections()for everything else, which drops idle keep-alive connections while letting requests still in flight finish normally. If you are already handling this on your Express server yourself, set this param totrueto prevent errors and leaveserver.close()untouched. Default:false.