The invention relates to the technical field of
Web application development, in particular to a method for realizing
interaction control among a Web side, a
server side and a control side. According to the method for realizing
interaction control among the Web side, the
server side and the control side, the
server side is realized based on Node.js, and a
WebSocket module and an SSE module are integrated on the
server side; bidirectional real-time communication connection between the
server side and the Web side and between the
server side and the control side is established through the
WebSocket module, and one-way real-
time data pushing from the server side to the Web side is achieved through the SSE module; and the control end establishes connection with the server side through the
WebSocket module and sends an instruction to the server side. According to the method for realizing
interaction control among the Web side, the server side and the control side, the message transmission efficiency among multiple sides is improved, the
delay is reduced, meanwhile, the three industrial problems of protocol splitting, high
delay of the mobile side and multi-terminal cooperation of a real-time interaction
system are solved, and the development and maintenance cost of the
system is reduced.