Closed devwithu closed 2 months ago
question. i read tcp/ssl tls(https://netly.docs.kezero.com/#/), but it is confusing and old. Netly websocket support ssl ? i can use nginx proxy, but if Netly websocket support ssl then i will more happy. thanks.
Netly HTTP.WebSocket (client) support https encrypted connection but HTTP.Server (websocket) server don't allow https connection, it's because is based with dotnet Http listener (don't allow https connection)
Read more about in #https://github.com/alec1o/Netly/discussions/36
thanks answer. I should have read the document more carefully.
I'll add websocket examples on README. Ihad forgotten to update the readme...
I had not put because all those still in development stage, and current branch is dev. Netly 3.x.x doesn't allow websocket connection.
Do you have a solution on how to implement SSL/TLS in HttpListener? :1st_place_medal:
I'm feel that version 4 will not be released and that this lib will die in development of this version. 💔
The only reason I haven't given up yet is because I need this lib version 4 to be able to create xLift a Gamelift and Agones alternative
sorry. i do not have a solution on how to implement SSL/TLS in HttpListener.
I'm feel that version 4 will not be released and that this lib will die in development of this version.
sad news..
xLift is also cool. when i have a time, i will study xLift. and .net core websocket with ssl.
you can close this issue.
you are my hero. thanks you very much for netly, xLift and your kind replay.
Thank you a lot, you made me motivated 🤱🏽 like my mother 🥹
Now I'll release this version in May or June.
About websocket client and http client the good news is both clients support and connect to encrypted server (wss;https)
- But we need use Proxy like Nginx on server side to enable encrypted server
I decided to add an example of how the library will be used after the release of version 4, the example contains examples of TCP, UDP, RUDP, WebSocket. Please note that some usability styles have also changed and do not match the current version.
I'm sorry, I had to change your example a little to be compatible with the launch version. And I also left this topic fixed as an example going deeper into the websocket readme,
The changes made to your code were:
I was looking for a library that supports both tcp and websocket in Unity. I found it today and wrote code to test websocket. It works well. I hope this code is useful to someone who is new to netly.
I'll have to test it in Unity tomorrow. thank you very much your effort. Sample WebSocketClient & Sample WebSocketServer
SampleWebSocketClient
SampleWebSocketServer