patwasalinguist
patwasalinguist
DDeno
Created by patwasalinguist on 8/29/2023 in #help
Deno KV: Should I expect 'value too large' errors inserting a JSON file with kv.set?
I see, thank you both
6 replies
DDeno
Created by patwasalinguist on 8/29/2023 in #help
Deno KV: Should I expect 'value too large' errors inserting a JSON file with kv.set?
forgive my ignorance. that's the maximum size that can be inserted as a value? that seems very small to me.
6 replies
DDeno
Created by patwasalinguist on 5/29/2023 in #help
Possible to deploy the chat example to deno deploy?
i see, interesting. i will push SSE on my endless stack of things to try 🙂
10 replies
DDeno
Created by patwasalinguist on 5/29/2023 in #help
Possible to deploy the chat example to deno deploy?
would you say you wouldn't recommend it because there is some kind of problem with websockets on deploy, or because you prefer SSE in general?
10 replies
DDeno
Created by patwasalinguist on 5/29/2023 in #help
Possible to deploy the chat example to deno deploy?
i think i must have a problem with the port, because i got this error in my browser: Firefox can’t establish a connection to the server at ws://localhost:8080/start_web_socket?username=huh.
10 replies
DDeno
Created by patwasalinguist on 5/29/2023 in #help
Possible to deploy the chat example to deno deploy?
i just tried deploying to deploy
10 replies
DDeno
Created by patwasalinguist on 5/29/2023 in #help
Possible to deploy the chat example to deno deploy?
hmm, server side events? interesting. i've been working on websockets to start with since there seem to be a lot of examples out there
10 replies
DDeno
Created by patwasalinguist on 5/9/2023 in #help
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
gotta ❤️ deno
11 replies
DDeno
Created by patwasalinguist on 5/9/2023 in #help
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
thanks!
11 replies
DDeno
Created by patwasalinguist on 5/9/2023 in #help
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
nice
11 replies
DDeno
Created by patwasalinguist on 5/9/2023 in #help
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
hmm, this seems to work
let url = new URL('./delete.json', import.meta.url).href
let response = await fetch(url)
let data = await response.json()
let url = new URL('./delete.json', import.meta.url).href
let response = await fetch(url)
let data = await response.json()
11 replies
DDeno
Created by patwasalinguist on 5/9/2023 in #help
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
in other words, i'm running it as a shell script and not a deno server, if i'm explaining that correctly
11 replies
DDeno
Created by patwasalinguist on 5/9/2023 in #help
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
hmm. i get this if i $ deno run --allow-read import-data.js
error: Uncaught TypeError: Invalid URL: './delete.json'
let response = await fetch('./delete.json')
error: Uncaught TypeError: Invalid URL: './delete.json'
let response = await fetch('./delete.json')
11 replies