Home > front end >  Websocket how to acquire the data and real-time database to return to the web front end
Websocket how to acquire the data and real-time database to return to the web front end

Time:03-05

Have a idea want to ask you, I want to made a simple websocket real-time display pages, to data from a database, the database data changes,
By websocket the real-time change data pushed to the front desk
Previously used websocket, so is not very clear, I know the front-end js and back-end websocket code is long links, so the websocket how to obtain the service layer object, database operation? Is introduced through the @autowired service object to operate the database?


Want to pass this project springboot + websocket + mysql framework processing

thank you

CodePudding user response:

Basically see the support of your WEB server, now most support websocket
The front-end new Websocket (ws://localhost: 996 ')
Polling the database backend server whether to change,,
It's a pity that the current mainstream database currently does not support passive push

CodePudding user response:

Have you finished the building Lord this requirement, please? Want to learn, thank you

CodePudding user response:

The building Lord finished? Want to learn learning thank you
  • Related