Recently doing web page WeChat sweep login code, including webSocket, application back-end currently USES asp, own me all day not fix, which some related cases, or asp development webSocket technology code?
CodePudding user response:
Directly with native websocket connection is established, the analytic qr code scanning data send to API, the response in the onmessage do after processing line
//create a connection Var ws=new the WebSocket (url)
//the connection is successful Ws. Onopen=()=& gt; { The console. The log (' success ') }
//response Ws. Onmessage=(data)=& gt; {
} //send data The function the send (data) { If (ws) readState===1) { Ws. Send (data) } }
//close the error...
CodePudding user response:
Front-end code a lot, this is not difficult, the server is ali cloud win2012 server, iis configuration is ready, just how the server using asp to achieve?
CodePudding user response:
Create a websocket establish long connection line service, baidu should have a lot of asp to realize the websocket create service
CodePudding user response:
Seek for a day, is used in each big search engine, search is less than using ASP to achieve