Deno Oak : Can't connect to SSE with Deno Deploy

Hello, I'm trying to deploy an app who use Server Sent Events. The goal is to keep in memory differents rooms and users when connected. Actually, i can see rooms being created and users being connected. I store the data of the room in a service but when i try to dispatchMessage on my users to send data, i see in my logs : user.target.dispatchMessage is not a function Locally, i don't get this errors. It works perfectly fine. I add some picture of the code that could help. Here is the repo : https://github.com/silvanic/PlanningPoking Thanks a lot for you help !
GitHub
GitHub - silvanic/PlanningPoking
Contribute to silvanic/PlanningPoking development by creating an account on GitHub.
No description
No description
N
NDH47d ago
I't may help to mention that this is an Oak server.
L
lexand47d ago
Yes, sorry. There you go, i mention it in the title
N
NDH47d ago
I'd love to help, but have no Oak experience. Someone will help.
L
lexand47d ago
Well, I have what... 1 month of experience on Oak as a side project? I'm just picking up information here and there to make things up and try to improve little by little. but thanks for reading 🙂
L
lexand46d ago
[UPDATE] : i change from EventEmitter (to trigger the dispatchEvent) to a setInterval. That's a bit better, i can connect but it seems SSE doesn't send back data on Deno Deploy, it returns 404 which is strange. Maybe the Free tier doesn't allow that?
No description
More Posts
Error connecting to mongoose when using deno cli**deno-x86_64-pc-windows-msvc v1.41.1** Testing the following code using `nodejs` and on `deno deplHow to debug deno on Visual Studio? (Not VSCode)Is it possible to debug deno on Visual Studio? (not vscode) I only know how to debug it using windoHow to polyfill node imports when bundling with the deno version of esbuild?Hello, I am trying to run esbuild using https://deno.land/x/esbuild to bundle a Deno project into aforward stream response from openapi to frontendforward stream openapi by using deno backend as a middleware, how to receive and send stream to fronShould deno install work with jsr?What am I doing wrong? When I try to install a CLI from jsr.io and then use it, I get an error messaImport-IntelliSense with Fresh and VSCode doesn't work as expectedHey. I'm fairly new to Deno and Fresh so I assume I'm simply missing something. I've created a FreshHow to rewrite this code so I don't have to force deno to stop linting?```ts import { parse } from "https://deno.land/std@0.218.2/toml/mod.ts"; import { match } from "npm:Deno compile optimizationHi Everyone, I'm building a CLI tool with Deno and I was wondering - if there are any optimizationIs there a way to select Partial Mode on button?I researched and I do not think it is possible, but it would be nice to do something like: ```<a f-pHow to Restart Server ManuallyI run Hono framework with Deno. I run the server using task script `deno run -A --watch ./server/maiIs there any reference manual for how doc comments are rendered on JSR or deno.land/x?I guessed it's just TSDoc, but it turns out that it's not exactly TSDoc (e.g., `@link` to an instancHow to start using data validation in kv?Hey fellows! I want to dive into data validation. Any experience or suggestions? Feel free to post