M
M
MSAFT2018-02-18 18:25:34
IIS
MSAFT, 2018-02-18 18:25:34

How to set up Websocket in C#?

Greetings.
There is a PHP backend which acts as a wrapper to a websocket in C#. (I'm not the author, I just asked to deploy the server)
The task is to launch and run these two components. There were no problems with the PHP backend, everything is standard for me - a Yii application on NGINX.
And with the application in C # there were difficulties. I created a Virtualbox machine on Windows Server, connected a network bridge, everything works. But what file is executable and how to run it through the web I can’t imagine.
In the root folder of the C# application there is App.config, .csproj (this is for Visual Studio, as I understand it), .sln (Visual studio) and a lot of .cs files, as I understand it, this is the project itself. The Readme says that the application is compiled, does not require additional settings and is ready to use. The binary found in the Debug / bin folder, it starts. But I have no idea how to run it all on the web, since I have never had experience with Windows. I downloaded Visual Studio and then I have no idea what to do))) Can anyone point me in the right direction?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#, 2018-02-18
@MSAFT

it's just some kind of madness ...
1 - php shell to c# - does php call c# on your server? ... "you can't take two bolivar away" - kill one on server
2 - do you have an "application in c#" - a client?... calling webserver? (if not - kill php for sure)
3 - and why virtualbox? ... what do you even use? ...
4 - "I downloaded Visual Studio and have no idea what to do next))) Can someone point me to the right path?" - install Windows, studio, and learn... MSDN is partially translated into Russian, and most of the rest is translated automatically in autopilot
ps
.. except perhaps "C# application SHELL OVER php back"... then yes ..
Signal-R .. (that is, again - kill php) ...
ppps
judging by the excuses below:
1 - set Windows as the main system
2 - raise Linux in hyper-v (and in win10 you can even run as an application, but without guys)
3 - your php "backend" - in linux
4 - c# client application (as well as a debugging studio) - in windows
... and remember - in this scenario - a sharp "shell" application ABOVE the php backend

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question