DenoDDeno
Powered by
lexandL
Denoβ€’3y agoβ€’
5 replies
lexand

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 !
image.png
image.png
GitHub
GitHub - silvanic/PlanningPoking
Contribute to silvanic/PlanningPoking development by creating an account on GitHub.
GitHub - silvanic/PlanningPoking
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Issue with Deno (Oak?)
UC EnjoyerUUC Enjoyer / help
2y ago
Can't "Sign in" to deno deploy
ceddlyburgeCceddlyburge / help
3y ago
HTTPS Oak Deno
ivandpfIivandpf / help
3y ago
Can't verify my Dynadot domain with Deno Deploy
mandxMmandx / help
9mo ago