Communication with local system via websocket

Hello, I need following. I have a Worker running. This worker needs access to a rest api in an local network which isnt exposed. The plan is to write a program like a gateway which runs locally and is 24/7 connected to the worker via a websocket. When I send a "task" like "GET the json from http://exampleservice.local:8121/exampleendpoint/" the gateway queries the data and responds to the worker also via the websocket. So i would be a async call. Would this work? Especially with the 24/7 connection to the websocket or would this spike my cloudflare bill? I heard that websockets in workers only get billed on messages sent in the websocket. Or does anyone has an better idea? Thanks yall!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server