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 websocketThe 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 youCodePudding user response:
The building Lord finished? Want to learn learning thank you