NazCodeland
Explore posts from serversCDCloudflare Developers
•Created by NazCodeland on 4/6/2024 in #workers-help
storing stateful WebSockets connection
I figured out what I was confused about
6 replies
CDCloudflare Developers
•Created by NazCodeland on 4/6/2024 in #workers-help
storing stateful WebSockets connection
was something else, sorry for the late reply but thanks for the support
6 replies
CDCloudflare Developers
•Created by NazCodeland on 4/6/2024 in #workers-help
storing stateful WebSockets connection
But,
Durable Objects
can store stateful information it seems. I am wondering why is it that Durable Objects
are able to store stateful information given that it is not persisted in the memory of the running application
6 replies
CDCloudflare Developers
•Created by NazCodeland on 4/4/2024 in #workers-help
How access 'env' in the WebSockets Template
hmm, you're right, it seems to be working - awaiting further confirmation lol
8 replies
CDCloudflare Developers
•Created by NazCodeland on 4/4/2024 in #workers-help
How access 'env' in the WebSockets Template
so if you define it with, the new syntax
it won't work as expected because, from the client-side when you invoke
websocket.send()
, I don't think that will invoke the fetch on the Worker8 replies
CDCloudflare Developers
•Created by NazCodeland on 4/4/2024 in #workers-help
How access 'env' in the WebSockets Template
I hope I am wrong but I think you can't use the new syntax because its a WebSocket connection
8 replies
CDCloudflare Developers
•Created by NazCodeland on 4/4/2024 in #workers-help
How access 'env' in the WebSockets Template
I've tried but I can't get it to work.
8 replies
CDCloudflare Developers
•Created by NazCodeland on 4/4/2024 in #workers-help
How access 'env' in the WebSockets Template
I want to access
env
so I can access MY_KV_NAMESPACE
8 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
ok, thank you both.
14 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
just re-reading this, i said yes earlier but, it's not exactly what I was doing. If I close the connection like I've shown in the gif or if I change the url to another site or refresh the connection ( all those actions terminate the websocket connection )
14 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
I am using this template, https://github.com/cloudflare/websocket-template, however, I have taken all of the template.js content and put it inside of a index.html and used live-server to run the index.html (sharing this incase it matters)
14 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
14 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
see if I can get a gif going one second
14 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
yeah, that's what I mean
14 replies
CDCloudflare Developers
•Created by NazCodeland on 4/2/2024 in #workers-help
`wrangler tail` with WebSockets
@Isaac McFadyen | YYZ01 sorry for the ping but I figure I ask you as you and I were chatting about this in the workers-discussions channel. But if anyone else knows what I can do to make those logs show up, please let me know
14 replies
CDCloudflare Developers
•Created by NazCodeland on 12/31/2023 in #pages-help
Page address for GitHub Repository not working
❤️
30 replies