diff options
author | Florian Dold <florian@dold.me> | 2023-02-16 01:01:18 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-16 02:50:29 +0100 |
commit | 8e78bf73a0bf30961e52b68ae1cc8c5d75c991e0 (patch) | |
tree | d808846a6d04876fc62cc9970e9e16cedba83a61 /packages/web-util/src | |
parent | 825d2c4352022e7397854b2bd9ba7d3589873c07 (diff) | |
download | wallet-core-8e78bf73a0bf30961e52b68ae1cc8c5d75c991e0.tar.xz |
web-util fixes
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"); |