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
ScaredOfMyRawr
ScaredOfMyRawr13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
ScaredOfMyRawr
ScaredOfMyRawr13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
ScaredOfMyRawr
ScaredOfMyRawr13mo ago
But whether that extends to dur- yeah
suck
suck13mo 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)