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

RSocketSample: need sample for use of SocketTransport & WebSocketTransport #31

Open
AlexanderFlanchik opened this issue Jul 26, 2021 · 6 comments

Comments

@AlexanderFlanchik
Copy link

Hi RSocket Team,

I am trying to create a very simple RSocketServer using .NET 5. I have seen the sample project RSocketSample and tried to replace LoopbackTransport with SocketTransport or WebSocketTransport. I have used .NET 5 worker template and put this logic to separate hosted service. But it does not work. Sample with SocketTransport falls at Server.ConnectAsync(), but WebSocketTransport sample starts normally. However, I cannot connect it through WebSocket - Chrome says "WebSocket connection failed" when I try to do let ws = new WebSocket('ws://localhost:59800') (I am using this port in server app). Could you please add samples of SocketTransport & WebSocketTransport use?

Thanks,
Alex

@q00Dree
Copy link

q00Dree commented Nov 3, 2021

Hi @AlexanderFlanchik.

Did you manage to figure out how to make a tcp or wss server?
Could you show an example?

@tpeczek
Copy link
Contributor

tpeczek commented Nov 3, 2021

Hi @q00Dree, @AlexanderFlanchik,

Somehow this ended up on my radar :). Long time ago I've done a basic sample of RSocket Server on top of ASP.NET Core. It's a TCP server which is implementing IRSocketTransport on top of primitives for Non-HTTP Servers. Maybe it will be useful for you:

This reminds me that I should come back and check how RSocket.NET has grown.

@q00Dree
Copy link

q00Dree commented Nov 3, 2021

Hi @tpeczek,
I already read your title and tried server code - It works!. Thank you a lot!

@AlexanderFlanchik
Copy link
Author

AlexanderFlanchik commented Nov 3, 2021 via email

@AlexanderFlanchik
Copy link
Author

AlexanderFlanchik commented Nov 3, 2021 via email

@tpeczek
Copy link
Contributor

tpeczek commented Nov 4, 2021

Hi @AlexanderFlanchik,

I wasn't thinking about that, but in general it boils down to effort vs value as day is a finite amount of hours in a day. When I wrote that particular article I was evaluating the technology for one of my clients. As currently I have no clients with interest in this technology, it all depends if there is a general benefit for the community. I'm unable to tell if RSocket is becoming popular with .NET community and if they are people who would benefit from such a series.

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

3 participants