Remove faucet out of the websocket

This commit is contained in:
Sosthene 2024-11-22 16:08:10 +01:00
parent 97c5ff0721
commit 33b95a0b62

View File

@ -12,12 +12,6 @@ export async function initWebsocket(url: string) {
ws.onopen = async (event) => {
console.log('WebSocket connection established');
const amount = await services.getAmount();
if (amount === 0n) {
const faucetMsg = await services.createFaucetMessage();
await services.sendFaucetMessage(faucetMsg);
}
while (messageQueue.length > 0) {
const message = messageQueue.shift();
if (message) {