maaan i was about to try out workers

maaan i was about to try out workers with some discord rich presence biz, but i just saw that discord intentionally blocks socket connections from CF workers. a tragedy
6 Replies
Ashley
Ashley•2y ago
I am curious, what were you looking to do? As from memory, the websocket-based approach requires your bot to be connected 24/7 essentially, which wouldn't be possible with CF workers
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ashley
Ashley•2y ago
The Cloudflare Blog
Announcing connect() — a new API for creating TCP sockets from Clou...
Today, we are excited to announce a new API in Cloudflare Workers for creating outbound TCP sockets, making it possible to connect directly to databases and any TCP-based service from Workers
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ashley
Ashley•2y ago
But whether that extends to dur- yeah
suck
suckOP•2y ago
yeahhh i misunderstood how rich presence stuff works, requires an RPC or websocket connection to the running app i thought it would be similar to the gateway API (i've got a few gateway bots running on railway)
Want results from more Discord servers?
Add your server