Home > Net >  Winform to accept requests from WeChat scan code?
Winform to accept requests from WeChat scan code?

Time:10-11

Configuration, the local C/S (client a (winform), web iis server (b/S (asp.net)
Problem is when the phone WeChat sweep yards, request to query the price of time, winform client how to get the notice?
Local client can connect to the Internet, but I don't accept outside network access, in addition to the polling has a better way,

CodePudding user response:

WeChat scan code, teng letter company sends a message to your "public" site, as for your winform application with your web site of the communication between the public, the somebody else is no matter, you use "polling" only will make your site is suitable for small applications, low speed applications, is not can't, for example when students can use the way of polling, and comparison of professional programmers designing a larger projects can use websocket two-way communication,

CodePudding user response:

references the building intelligent vision response:
local client can connect to the Internet, but not to accept the network access


This argument is not an excuse "polling", that means you have not made the TCP communications such as programming, is ready to take the news with a two-way communication, tencent hypothesis has 200000 servers, for example, there are 2 billion people use, it is not to say that on each server every few milliseconds to tens of millions of clients to polling, whenever there is a message, the message the same source server to reach the target server, and then directly pushed to mobile phones, "long connection two-way communication is normal, no polling,

Many programming training in order to make money, the graduate student's tuition, teach introductory courses in junior high school students, so they didn't speak long connection two-way communication knowledge, teach some HTTP only the most basic content of one-way communication,

CodePudding user response:

In websocket communication, winform and personal web site who is between the client and server is who?

CodePudding user response:

reference 1st floor interacting in a professional developer response:
WeChat sweep yards, teng letter company sends a message to your "public" site, as for your winform application with your web site of the communication between the public, the somebody else is no matter, you use "polling" only will make your site is suitable for small applications, low speed applications, is not can't, for example when students can use the way of polling, and comparison of professional programmers designing a larger projects can use websocket two-way communications,


Whenever WeChat scan code, we will notify to broadcast, ask the site for the client by connecting the websocket, you get WeChat notice is that so? This "personal public" website to realize the websocket to do

CodePudding user response:

Look what is your code, sometimes sweep out is a link, such as the link on your website for the verification of the mobile phone interface, which bring the current login id of the page, and the mobile client token of what, with corresponding relation between other your own choice,

CodePudding user response:

reference 5 floor icoolno1 reply:
see you code is what ah, sometimes sweep out is a link, such as the link on your website for the verification of the mobile phone interface, which bring the current login id of the page, and the mobile client token of what, with corresponding relation to other your own choice,

This code is a link, display a page, enter the id and submitted, the request will access the web site, web site, then forwarded to local business logic in the local, so local news after get the result, then push the results to the web site, web and then returned to the phone
  •  Tags:  
  • C#
  • Related