diff --git a/client/TurboBot.ts b/client/TurboBot.ts index f5bbde2..956d55e 100644 --- a/client/TurboBot.ts +++ b/client/TurboBot.ts @@ -66,9 +66,8 @@ export class TurboBot { const raydium = new PublicKey(RAYDIUM_PUBLIC_KEY); let isCheckingPool = false - /* const subId = this.connection.onLogs(raydium, async (txLogs) => { - //console.log(`Log received. ${txLogs.signature}`) + console.log(`Log received. ${txLogs.signature}`) if (isCheckingPool || this.seenTxs.has(txLogs.signature)) { return } isCheckingPool = true this.seenTxs.add(txLogs.signature) @@ -113,30 +112,6 @@ export class TurboBot { isCheckingPool = false }) this.onLogsSubscriptionId = subId - */ - - const ws = new WebSocket(config.rpcWsURL) - ws.onopen = () => { - ws.send( - JSON.stringify({ - "jsonrpc": "2.0", - "id": "1", - "method": "slotSubscribe" - }) - ) - - ws.onmessage = (evt) => { - try { - console.log(`New slot from WS: ${evt.data.toString()}`) - } catch (e) { - console.log(e) - } - } - } - ws.onerror = (e) => { - console.log(`WS error1: ${e.error.errors[0]}`) - console.log(`WS error2: ${e.error.errors[1]}`) - } }) }