aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/subscription/+server.ts
blob: 47dfc770be19893144b47f9683dcdc2edc66c3fe (plain) (blame)
generated by cgit v1.2.3 (git 2.51.0) at 2026-11-06 19:12:04 +0000
 


x">map((symbol) => {
        rates[symbol] = msg.c * fx[symbol];
      });

      app.set("ask", msg.a);
      app.set("bid", msg.b);
      app.set("last", msg.c);
      app.set("rates", rates);
    } catch (e) {
      l.error("binance message error", e.message);
    }
  };

  binance.onerror = async function (error) {
    console.log("binance socket error", error);
  } 

  return binance;
};