pinax-network / substreams-sink-websockets

Substreams Sink Websockets
https://substreams-sink-websockets-production.up.railway.app
MIT License
2 stars 1 forks source link

Auto-subscribe from URL params #23

Closed DenisCarriere closed 1 year ago

DenisCarriere commented 1 year ago

Having the user provide all the subscribe payload in the URL, allows the user to do both:

Example:

ws://localhost:3000/subscribe?chain={CHAIN}&moduleHash={MODULE_HASH}
ws://localhost:3000/subscribe?chain=polygon&moduleHash=0a363b2a63aadb76a525208f1973531d3616fbae
DenisCarriere commented 1 year ago

Updated to (drop /subscribe):

ws://localhost:3000?chain={CHAIN}&moduleHash={MODULE_HASH}
DenisCarriere commented 1 year ago

Implemented