Skip to content

Commit

Permalink
feat: expose socket client for external integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Mar 3, 2022
1 parent 85bbeea commit 13da56b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client-src/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ const Client =

let retries = 0;
let maxRetries = 10;
let client = null;

// Initialized client is exported so external consumers can utilize the same instance
// https://github.com/webpack/webpack-dev-server/issues/4261
// eslint-disable-next-line import/no-mutable-exports
export let client = null;

/**
* @param {string} url
Expand Down

0 comments on commit 13da56b

Please sign in to comment.