diff options
Diffstat (limited to 'packages/web-util/src')
-rw-r--r-- | packages/web-util/src/cli.ts | 3 | ||||
-rw-r--r-- | packages/web-util/src/serve.ts | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/web-util/src/cli.ts b/packages/web-util/src/cli.ts index dca4fc664..b02947f7a 100644 --- a/packages/web-util/src/cli.ts +++ b/packages/web-util/src/cli.ts @@ -1,4 +1,5 @@ -import { clk, setGlobalLogLevelFromString } from "@gnu-taler/taler-util"; +import { setGlobalLogLevelFromString } from "@gnu-taler/taler-util"; +import { clk } from "@gnu-taler/taler-util/clk"; import { serve } from "./serve.js"; export const walletCli = clk diff --git a/packages/web-util/src/serve.ts b/packages/web-util/src/serve.ts index f3a97e2e2..34982c656 100644 --- a/packages/web-util/src/serve.ts +++ b/packages/web-util/src/serve.ts @@ -3,7 +3,7 @@ import chokidar from "chokidar"; import express from "express"; import https from "https"; import { parse } from "url"; -import WebSocket, { Server } from "ws"; +import WebSocket from "ws"; import locahostCrt from "./keys/localhost.crt"; import locahostKey from "./keys/localhost.key"; @@ -45,7 +45,7 @@ export async function serve(opts: { logger.info(` ${PATHS.NOTIFY}: broadcast`); if (opts.development) { - const wss = new Server({ noServer: true }); + const wss = new WebSocket.Server({ noServer: true }); wss.on("connection", function connection(ws) { ws.send("welcome"); |