摘要 |
<p>The present disclosure provides a method and apparatus for cross-process communication, which is related to the field of communication. The method includes: a preset container process receiving a request for cross-process communication sent by a first process; the preset container process setting up a communication channel with the first process according to the request for cross-process communication; the preset container process loading service modules corresponding to the request for cross-process communication, therefore the preset container process that is loaded with the service modules conducting a cross-process communication with the first process through the communication channel. The apparatus includes a reception module, a channel setup module and a loading module. The present disclosure simplifies the process for setting up the communication channel in the cross-process communication, saves codes and therefore improves communication efficiency.</p> |