web-util fixes
This commit is contained in:
parent
825d2c4352
commit
8e78bf73a0
@ -21,7 +21,6 @@ import {
|
||||
CoreApiMessageEnvelope,
|
||||
CoreApiResponse,
|
||||
CoreApiResponseSuccess,
|
||||
createPlatformHttpLib,
|
||||
getErrorDetailFromException,
|
||||
InitRequest,
|
||||
Logger,
|
||||
@ -29,6 +28,7 @@ import {
|
||||
setPRNG,
|
||||
WalletNotification,
|
||||
} from "@gnu-taler/taler-util";
|
||||
import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
|
||||
import { qjsOs } from "@gnu-taler/taler-util/qtart";
|
||||
import {
|
||||
createNativeWalletHost2,
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
@ -6,7 +6,7 @@
|
||||
"jsx": "react",
|
||||
"jsxFactory": "h",
|
||||
"jsxFragmentFactory": "Fragment",
|
||||
"moduleResolution": "Node",
|
||||
"moduleResolution": "Node16",
|
||||
"sourceMap": true,
|
||||
"lib": [
|
||||
"es6"
|
||||
|
Loading…
Reference in New Issue
Block a user