Remove faucet out of the websocket
This commit is contained in:
parent
97c5ff0721
commit
33b95a0b62
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user