webpack-dev-middleware
Version:
A development middleware for webpack
9 lines • 547 B
JavaScript
// The connection the runtime holds, for tooling that listens alongside it.
//
// `client` is live: `null` before the runtime starts to connect and while it
// waits to reconnect, and the current transport instance otherwise, whose own
// `client` is the `WebSocket` or `EventSource` underneath — a new one for each
// connection. It is the same shape webpack-dev-server's `client/socket` has
// always exported, which is how `@pmmmwh/react-refresh-webpack-plugin` reads
// its build messages.
export { client } from "./clients/createSocket.js";