deniszykov / WebSocketListener

A lightweight and highly scalable asynchronous WebSocket listener
http://vtortola.github.io/WebSocketListener
81 stars 17 forks source link

need echo listener and web client for Mac. #44

Open SameerRaina opened 5 years ago

SameerRaina commented 5 years ago

hi, I am trying to test the echo-server sample and web-client sample on the same computer which is a Mac and I see that the csproj files have a .net dependency which is to be replaced with .net core. I don't know what to do with .net standard dependency and am curious if you have versions of the above mentioned projects for the Mac OS. Also, when I tried to build the echo-server project in VS Community on Mac it gave me the following errors

/Users/sameerraina/deniszykov.WebSocketListener.4.2.4/WebSocketListener-master/Samples/EchoServer/CSC: Error CS0006: Metadata file '/Users/sameerraina/deniszykov.WebSocketListener.4.2.4/WebSocketListener-master/vtortola.WebSockets.Rfc6455/bin/Debug/netstandard1.3/vtortola.WebSockets.Rfc6455.dll' could not be found (CS0006) (EchoServer)

/Users/sameerraina/deniszykov.WebSocketListener.4.2.4/WebSocketListener-master/Samples/EchoServer/CSC: Error CS0006: Metadata file '/Users/sameerraina/deniszykov.WebSocketListener.4.2.4/WebSocketListener-master/vtortola.WebSockets/bin/Debug/netstandard1.3/vtortola.WebSockets.dll' could not be found (CS0006) (EchoServer)

/Users/sameerraina/deniszykov.WebSocketListener.4.2.4/WebSocketListener-master/Samples/EchoServer/CSC: Error CS0006: Metadata file '/Users/sameerraina/deniszykov.WebSocketListener.4.2.4/WebSocketListener-master/vtortola.WebSockets.Deflate/bin/Debug/netstandard1.3/vtortola.WebSockets.Deflate.dll' could not be found (CS0006) (EchoServer)

Could you guide me as to how to solve these problems.

Also, ultimately I have to deploy the server on a linux machine. will the csproj values be different there as well?

Thanks a lot!

deniszykov commented 5 years ago

Hi @SameerRaina. These errors indicate that vtortola.WebSockets.Deflate, vtortola.WebSockets, vtortola.WebSockets.Rfc6455 are not build. Could you gather more info about building errors?

trinitrotoluene commented 5 years ago

This solution doesn't build on linux/mac under .NET Core because of the net45 build target. I hit the same problem when doing CI builds on a project that had this repository as a submodule since the NuGet package isn't up to date with this repo. Easy way to fix this locally is to just remove the target and run only the netstandard1.3 build 😄