Skip to content
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

Give a little better WebSocketSample #16

Open
mika76 opened this issue Sep 18, 2018 · 0 comments
Open

Give a little better WebSocketSample #16

mika76 opened this issue Sep 18, 2018 · 0 comments

Comments

@mika76
Copy link

mika76 commented Sep 18, 2018

The Web Socket sample is very contrived. using statements which shorten long delegates which use tuples and everything works in a weird async task of an echo server....

I've been trying to figure out how to write a simple web socket server to send events (ie - not respond to messages but send events from my self hosted owin console app) but this sample is just not good.

Please could you guys write a better one? Maybe properly structured which use properly named classes and methods (please no usings shortcuts or tuples) and maybe give some more info on how to do things like respond to a websocket message (in this current sample) but also how to do broadcasts and such... 🙏

Oh and please don't tell me to use SignalR - I know I can but I just want websockets and signalr does not do "just websockets" well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant