摘要 |
<p>The present invention discloses a network interconnection method and system between a WEB application and an external device, the system includes: a communication module, configured to receive a first message from a transmitter, wherein the first message carries a first message event number, a node identifier of the transmitter, a thread identifier of the transmitter, a node identifier of a receiver, a thread identifier of the receiver, and a first message content, and to encapsulate the first message event number, the node identifier of the transmitter, the thread identifier of the transmitter, the node identifier of the receiver, the thread identifier of the receiver into a first message header according to a predetermined structure, to transmit the first message header and the first message content; a WEB proxy module, configured to receive the first message header and the first message content from the communication module, to read the thread identifier of the transmitter from the first message header, to establish a corresponding sub-thread according to the thread identifier of the transmitter, to transmit the first message header and the first message content to the predetermined sub-thread of the receiver. By the technical solution provided by the present invention, the difficulty in WEB development is reduced and the performance and stability of the WEB application is improved.</p> |