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
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•2y ago
Message Not Public
Sign In & Join Server To View
https://blog.cloudflare.com/workers-tcp-socket-api-connect-databases/ it is as of a week or two 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•2y ago
Message Not Public
Sign In & Join Server To View
But whether that extends to dur- yeah
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)