Home > front end >  ASP development webSocket
ASP development webSocket

Time:12-05

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

CodePudding user response:

reference 4 floor of fenyi response:
looking for a day, is used in the major search engines, search is less than using ASP to achieve
ASP or c #? Asp no socket, can only be done through a third party DLL to him, itself is not able to

CodePudding user response:

The
refer to fifth floor & lt; Span style="color: # 4788 c7" & gt; Amuie Response:
Quote: refer to 4th floor fenyi response:
looking for a day, is used in the major search engines, search is less than using ASP to achieve
ASP or c #? Asp no socket, can only be done through a third party DLL to him, itself is not can
& lt; Br/& gt; Asp, please recommend which DLL

CodePudding user response:

Can try to write a c + + websocket server compiled into a DLL or online to look for a change

Then configure IIS websocket forward requests to the DLL
Just thinking,

CodePudding user response:

Pro, here it is recommended that you use netbox write one, but the difficulty is higher, want to save trouble, you can use nodejs,

CodePudding user response:

If you have any configuration access is IIS and, also can consider to c #,
  •  Tags:  
  • ASP
  • Related