Home > Back-end >  Before and after the end of the separation, how the back-end data directly to the front page
Before and after the end of the separation, how the back-end data directly to the front page

Time:05-09

Front end does not request the back-end case, how can the back-end initiative to put the data sent to the front

CodePudding user response:

Write a front-end receive code, do push the back-end

CodePudding user response:

reference 1st floor s478853630 response:
front end receives the code written, back-end do push

It is a little more specific ideas without, so to speak

CodePudding user response:

socket

CodePudding user response:

Websocket, back-end active push message to the front end

CodePudding user response:

The
reference 3 floor nayi_224 response:
socket

steady

CodePudding user response:

The
reference 2 floor XX! Response:
Quote: refer to 1st floor s478853630 response:
front end receives the code written, back-end do push

Can say it is a little more specific ideas without


https://www.jianshu.com/p/ae40c81423a5

Take a look at this, can be achieved

CodePudding user response:

websocket

CodePudding user response:

If it's front end, integrated websocket, https://www.zhihu.com/question/20215561
If it is app, message delivery, ali, millet, etc all have mature application access to go, one day a few hair to pieces

CodePudding user response:

The front do refresh regularly

CodePudding user response:

Or in the WebSocket API, the browser and server only need to do a handshake, then, between the browser and server are formed a fast-track, between the two can directly transfer data to each other,
  • Related