CodePudding user response:
Do write website and TCP services together also canYou in initializing up a TcpListener
CodePudding user response:
Asp.net can't write.. This is all based on the service short connect HTTP long link not achieve them.This is what we call the socket using c # socket or tcplistener can realize website that is not sure. But you wrote
You can do the test first write an exe implementation after transplantation to winservice
As for you want to "real-time" you need other way such as you receive the data inserted into a database or your compatible websocket protocol TCP service.
Then web service receives data connection service for transit can be so
CodePudding user response:
Websocket is something new, TCP is old thingsSo this itself is a pain points, usually I personally write directly forward agent, but if you can't write this agent to forward it doesn't matter,
I believe that no new under the sun, so since this is the pain they solve
https://www.npmjs.com/package/websocket2tcpsocket/v/1.0.3
Ps: this article also said, in fact the git on many websocket proxy agent