-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for WebSockets #7
Comments
Hi and thanks for checking out Pogo! I have not yet tried to use WebSockets with Deno. There is no API in Pogo for it currently, but I am open to adding support for WebSockets. That will happen faster if you can make a pull request, otherwise I will probably get around to it eventually. Here are some relevant resources:
|
Thanks. I will take a look. |
Hey! I'm still learning Deno but I have something monkey patched working locally for me. I'm not confident enough yet to write a PR but I'll leave here what I have for others that may want to test this out. import this from deno's std
My function to create the websockets is this one (Connection in this context is a class I created to manage all messages)
Initialize Pogo as per the Readme
And now for the important bit. Instead of starting pogo normally, I created a different function just to check if it is a valid websocket request, if it is manage it with the previously created function
|
Do you have an idiomatic example for establishing a WebSocket with pogo?
The text was updated successfully, but these errors were encountered: