Method and apparatus, device, and medium for creating message channel
AssigneeLemon Inc.
InventorQinghao Zhu
Life of this patent
Estimating the term…
Abstract
The present invention relates to the field of computer technologies, and discloses methods and apparatuses for creating a message channel, a device, and a medium. In the methods provided in embodiments of the present application, a client performs a message channel creation operation, and transmits a communication port for the message channel and a page identifier to a web end.
Claims20
A method for creating a message channel, the method comprising:
- receiving a first message notification sent by a web end, wherein the first message notification is used to notify a client to create a message channel;
- performing a message channel creation operation in response to the first message notification, to obtain a channel port corresponding to the message channel, wherein the channel port comprises a first communication port of the client and a second communication port of the web end;
- determining a target page identifier corresponding to a target page with which the client is currently requesting to communicate, wherein the target page identifier is a page identifier that the client authenticates before creating the message channel;
- and
- generating a second message notification based on the target page identifier and the second communication port, and sending the second message notification to the web end, wherein the web end performs, on the target page, message transmission with the client by using the second communication port.
A method for creating a message channel, the method comprising:
- obtaining a current communication connection requirement triggered based on a web end;
- sending a first message notification to a client in response to the communication connection requirement, wherein the client is configured to perform a message channel creation operation to obtain a channel port, wherein the channel port comprises a first communication port of the client and a second communication port of the web end;
- receiving a second message notification sent from the client, wherein the second message notification carries the second communication port and a target page identifier, wherein the target page identifier is a page identifier of a target page with which the client is currently requesting to communicate;
- and
- sending message content to the client through the second communication port on the target page corresponding to the target page identifier.
A non-transitory computer-readable storage medium, having stored thereon computer instructions, wherein the computer instructions are used to cause a computer to:
- receive a first message notification sent by a web end, wherein the first message notification is used to notify a client to create a message channel;
- perform a message channel creation operation in response to the first message notification, to obtain a channel port corresponding to the message channel, wherein the channel port comprises a first communication port of the client and a second communication port of the web end;
- determine a target page identifier corresponding to a target page with which the client is currently requesting to communicate, wherein the target page identifier is a page identifier that the client authenticates before creating the message channel;
- and
- generate a second message notification based on the target page identifier and the second communication port, and sending the second message notification to the web end, wherein the web end performs, on the target page, message transmission with the client by using the second communication port.
Dependencies are inferred from the claim text.