D
Deno

help

Possible to deploy the chat example to deno deploy?

Ppatwasalinguist5/29/2023
I would like to try running this demo on deno deploy: https://deno.com/manual@v1.34.0/examples/chat_app However, I have seen somewhere that deploy doesn't suport websockets. Is this currently the case? Is it possbile to run this with deploy? thanks
Deno
Chat App | Manual | Deno
In this tutorial we'll create a simple chat app using Deno. Our chat app will allow multiple chat clients connected to the same backend to send group messages through web sockets. After a client choo
IioB5/29/2023
Deploy supports websockets, but I wouldn't recommend it. SSE is definitely the way to go.
Ppatwasalinguist5/30/2023
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 i just tried deploying to 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. 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?
IioB5/30/2023
I prefer SSE in general because of autoreconnect + a simpler API surface websockets work, but it's just not very fun to set up reconnect
Ppatwasalinguist5/30/2023
i see, interesting. i will push SSE on my endless stack of things to try πŸ™‚
IioB5/30/2023
πŸ‘

Looking for more? Join the community!

Recommended Posts
`dnt` incompatible with `addEventListener`?I am using the log/mod.ts module from deno_std and running `dnt` with no special configuration as faSaaskit 0.2.0 - URLPattern errorI followed the README.md but when running `deno task start` this error pops up (image) How can i fiRunning `deno cache` fails often with internal server errors when importingExample message ``` error: Import 'https://deno.land/std@0.175.0/path/_constants.ts' failed: 500 IntHow many Web Platform tests should deno be passing?I wanted to package Deno as RPMs but before I started that, I'm getting very different test results Deno Deploy with Cloudflare ProxyIs it possible to use Cloudflare proxy with Deno deploy website? Cloudflare provides countryCode inDeno event loop and gui applicationHi, I am trying to write custom gtk library in deno using `gtk-rs` and `deno_runtime`. I already havSimple type narrowing/type guard/assertion (?)Is there really no simpler way of doing this _without_ `any` and without external deps? ```ts exporImport is "Not yet initialized?"No idea what this means. First screenshot is error, second screenshot is problematic line, third scHow are deno processes/isolates managed in Deploy?Hi, I'm writing a multiplayer game in Deno and currently all of the game state is kept in module-scoCannot access web server from other network devices when compiledHello. Im kinda new to deno and i just compiled my first bigger project with deno, but when the taskHow to use chrome devtools / inspector with Deno?Hello all! I'd like to profile my game server written in Deno to identify the hot spots. I see thaClear local KV storeHow do I delete/clear the local database?Deno.Command not working for applicationHello. Im trying to start an application using Deno.Command, but it for some reason doesnt work. TheUint8Array or Float32ArrayIs there any significant difference between using a Float32Array and using a Uint8Array from the samSending proper Content-Type depending on file sentHello. Im new to Deno and TypeScript and i wanted to convert one of my older projects (NodeJs and JaReclaim an already registered module?Is it possible to reclaim an already registered third party module? For example if the module that iDeno.readDir on current script even if used like an http package.Hello !! I would like to do Deno.readDir and readFiles on files relative to the script that execute Top level awaits for `import()`How come to top-level awaits for `import()` not work? I found an issue on GitHub https://github.com/How to auto import on save?This doesn't work: { "deno.enable": true, "deno.lint": true, "deno.unstable": true, "editorRemove sink from streamIs it at all possible to "undo" adding a sink on a stream? I am trying to make it so that once the w