This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import WebSocket from 'ws'; | |
const DFUSE_WS_ENDPOINT = 'wss://jungle.eos.dfuse.io/v1/stream'; | |
const DFUSE_JWT_TOKEN = 'eyJhbGciOiJLTVNFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTMyNzM4MTcsImp0aSI6IjRiNDA5YzJiLWU2OGQtNDMxMi05NjhjLWFjNjc0OGY3NmIyNSIsImlhdCI6MTU1MDY4MTgxNywiaXNzIjoiZGZ1c2UuaW8iLCJzdWIiOiJDaVFBNmNieWUrMnZSSk1hVmxwK0JIT2x6ZGptMCsxdytsTUNsY09tbnBEOU9rSzFoTDRTUEFBL0NMUnRVQTIxVTVZOXUxTGtSRDRjL0NGOXZPcGRJZE1BRU54NTc5KzRkV0JmSUJyK0lDbVRESnFPVDM0UWM4czgweXgrWjhaWjhpbW1Kdz09IiwidGllciI6ImJldGEtdjEiLCJ2IjoxfQ.gsmfzAsEABy-J3gZAETnihH3A16-7tba1atrH1rsp2hRSXboqR_ALTmYhl4v47daGM4xun1tiXzlPhRoE8Yuug'; | |
const DFUSE_WS_ORIGIN = 'https://example.org'; | |
function dfuse() { | |
const ws = new WebSocket(`${DFUSE_WS_ENDPOINT}?token=${DFUSE_JWT_TOKEN}`, { | |
origin: DFUSE_WS_ORIGIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xA63aA0f75904E378606E052d4EbA376931C99A42 |