pankod/refine

View on GitHub
packages/devtools-server/src/serve-ws.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function serveWs has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const serveWs = () => {
  const ws = new WebSocket.Server({ port: WS_PORT }).on(
    "error",
    (error: any) => {
      if (error?.code === "EADDRINUSE") {
Severity: Minor
Found in packages/devtools-server/src/serve-ws.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status