A method, system, device and storage medium for handling reconnection after disconnection in a voice room

By comparing and verifying the room ID and room password of the voice room when the client of the voice social APP is disconnected and reconnected, the problem of reducing user privacy and security is solved, and the effect of enhancing user privacy and security and improving user experience is achieved.

CN116418786BActive Publication Date: 2025-06-13GUANGZHOU MIZAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310303295.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2025-06-13
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

Existing voice social APPs may reduce user privacy and security when disconnected and reconnected, and users cannot verify whether the room ID and room password of the voice room have changed, which may violate the user's privacy protection wishes.

Method used

When the client disconnects the line and reconnects, the second room ID of the voice room where it is located is obtained and the first room ID of the last entered voice room in the local cache. When the comparison is consistent, the first room password of the first room ID of the local cache is obtained and sent to the server for verification, ensuring that voice information can still be obtained after disconnecting the line and reconnects.

Benefits of technology

By comparing and verifying the room ID and room password cached by the client, the room ID and/or room password of the voice room are avoided after the room ID and/or room password of the voice room are changed, and the client can continue to receive voice information from the voice room without verification, which enhances the security of user privacy and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116418786B_ABST
    Figure CN116418786B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for handling reconnection of a disconnected voice room, including: when a first client disconnects from a server, sending a reconnection request to the server when the network of the first client returns to normal; returning, by the server, a second room ID of the voice room where the first client is currently located to the first client, so that the first client obtains a first room ID of the voice room entered last time cached locally and compares it with the second room ID; when the first room ID is consistent with the second room ID, obtaining, by the first client, a first room password of the first room ID cached locally and sending it to the server; verifying, by the server, the first room ID and the first room password, and when the verification passes, authorizing the first client to obtain voice information of the corresponding voice room. The present invention enhances the security of user privacy, improves the user experience, and can be widely applied to the technical field of voice platforms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of voice platform, and in particular to a method, system, device and storage medium for processing disconnection and reconnection of a voice room. Background Art

[0002] With the development of the Internet, people pay more and more attention to the protection of privacy information. In voice social apps, personal voice rooms can exist as a private space, and voice rooms are generally password-protected to restrict the entry of strangers.

[0003] At present, most users use mobile terminals (such as mobile phones, tablets, etc.) to interact with voice social apps, and the network of mobile terminals is easily affected by network switching or environmental changes (such as entering signal-shielded areas such as elevators), causing voice social apps to be disconnected. In this case, existing voice social apps generally adopt an imperceptible disconnection and reconnection mechanism, that is, after the network is disconnected, they will continuously try to reestablish a connection with the server in the background of the app. At the same time, to ensure that the entire process is imperceptible, the disconnected user will be kept in the voice room before the disconnection for a period of time after the disconnection, and the user will be directly authorized to continue to obtain voice information in the voice room after the connection with the server is restored.

[0004] Although the above disconnection and reconnection mechanism can ensure that users can quickly reconnect when the network switches or the environment changes, it also brings corresponding privacy and security risks. For example, when user A is disconnected and reconnects in the voice room created by user B, even if user B changes the room ID and / or room password of the voice room, the server will keep user A in the voice room for a period of time, and will not verify the room password after the disconnection and reconnection is successful (because user A has not actually left the voice room, there is no verification process for entering the room), so user A can continue to obtain voice information in the voice room after the disconnection and reconnection is successful, which may violate user B's intention to modify the room ID and / or room password to protect personal privacy, reduce the security of user privacy, and affect the user's experience. Summary of the invention

[0005] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.

[0006] To this end, an object of an embodiment of the present invention is to provide a method for processing disconnection and reconnection of a voice room, which method enhances the security of user privacy and improves the user experience.

[0007] Another object of an embodiment of the present invention is to provide a voice room disconnection and reconnection processing system.

[0008] To achieve the above technical objectives, the technical solutions adopted in the embodiments of the present invention include:

[0009] In a first aspect, an embodiment of the present invention provides a method for handling disconnection and reconnection in a voice room, including the following steps:

[0010] When a first client disconnects from the server, detect the network status of the first client, and send a disconnection reconnection request to the server when the network of the first client returns to normal;

[0011] Through the server, return a second room ID of the voice room where the first client is currently located to the first client, so that the first client obtains a first room ID of the last entered voice room cached locally, and then compare the first room ID with the second room ID;

[0012] When the first room ID is the same as the second room ID, obtain a first room password of the first room ID cached locally through the first client, and send the first room password to the server;

[0013] Verify the first room ID and the first room password through the server. When the verification passes, authorize the first client to obtain the voice information of the voice room corresponding to the first room ID.

[0014] Further, in an embodiment of the present invention, the method for handling disconnection and reconnection in the voice room further includes the following steps:

[0015] When the server does not receive the disconnection reconnection request within a preset time threshold, and the first client is currently in a voice room, move the first client out of the voice room where it is currently located.

[0016] Further, in an embodiment of the present invention, the step of returning, through the server, a second room ID of the voice room where the first client is currently located specifically includes:

[0017] Receive the disconnection reconnection request through the server, and detect whether the first client is currently in a voice room;

[0018] When the first client is currently in a voice room, query the second room ID of the voice room where the first client is currently located, and return the second room ID to the first client.

[0019] Further, in an embodiment of the present invention, the method for handling disconnection and reconnection in the voice room further includes the following steps:

[0020] When the first client is not in the voice room at the current moment, the server returns that the first client has left the voice room;

[0021] The first client obtains the first room ID and the first room password of the last entered voice room cached locally, and sends the first room ID and the first room password to the server.

[0022] Further, in an embodiment of the present invention, the step of verifying the first room ID and the first room password by the server specifically includes:

[0023] The server queries the second room password of the voice room corresponding to the first room ID at the current moment;

[0024] Compare the first room password with the second room password;

[0025] If the first room password is consistent with the second room password, the verification passes; otherwise, the verification fails.

[0026] Further, in an embodiment of the present invention, the step of authorizing the first client to obtain the voice information of the voice room corresponding to the first room ID specifically includes:

[0027] If the first client is in the voice room at the current moment, authorize the first client to obtain the voice information of the voice room where it is located at the current moment;

[0028] If the first client is not in the voice room at the current moment, authorize the first client to enter the voice room corresponding to the first room ID according to the first room ID and the first room password, and authorize the first client to obtain the voice information of the voice room corresponding to the first room ID.

[0029] Further, in an embodiment of the present invention, the voice room disconnection reconnection processing method further includes at least one of the following steps:

[0030] When the first room ID is inconsistent with the second room ID, move the first client out of the voice room where it is located at the current moment;

[0031] When the server fails to verify the first room ID and the first room password, and the first client is in the voice room at the current moment, move the first client out of the voice room where it is located at the current moment.

[0032] In a second aspect, an embodiment of the present invention provides a voice room disconnection reconnection processing system, including:

[0033] A disconnection reconnection request module, configured to detect the network status of the first client when the first client disconnects from the server, and send a disconnection reconnection request to the server when the network of the first client returns to normal;

[0034] A room ID comparison module, configured to return a second room ID of the voice room where the first client is currently located to the first client through the server, so that the first client obtains a first room ID of the voice room entered last time cached locally, and then compares the first room ID with the second room ID;

[0035] A room password acquisition module, configured to, when the first room ID is the same as the second room ID, obtain a first room password of the first room ID cached locally through the first client, and send the first room password to the server;

[0036] An authentication module, configured to authenticate the first room ID and the first room password through the server, and when the authentication is passed, authorize the first client to obtain voice information of the voice room corresponding to the first room ID.

[0037] In a third aspect, an embodiment of the present invention provides a voice room disconnection reconnection processing device, including:

[0038] At least one processor;

[0039] At least one memory, configured to store at least one program;

[0040] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned voice room disconnection reconnection processing method.

[0041] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, in which a program executable by a processor is stored, and the program executable by the processor is used to execute the above-mentioned voice room disconnection reconnection processing method when executed by the processor.

[0042] The advantages and beneficial effects of the present invention will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present invention:

[0043] In an embodiment of the present invention, when a client reconnects after a disconnection, the second room ID of the voice room where the client is located at the current moment is obtained, and compared with the first room ID of the voice room that the client entered last time and cached locally. When the comparison is consistent, the first room password corresponding to the first room ID cached locally is obtained, and the first room password is sent to the server for verification. After the verification passes, the client that reconnects after a disconnection is authorized to continue obtaining the voice information of the voice room where it is located. In the embodiment of the present invention, when the client reconnects after a disconnection, the room ID and room password cached by the client are compared and verified, so as to prevent the client from continuing to receive the voice information of the voice room without verification after the room ID and / or room password of the voice room have changed, enhancing the security of user privacy and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following introduces the drawings required to be used in the embodiments of the present invention. It should be understood that the drawings introduced below are only for conveniently and clearly presenting some embodiments of the technical solutions in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0045] Figure 1 It is a flowchart of the steps of a method for handling voice room disconnection and reconnection provided by an embodiment of the present invention;

[0046] Figure 2 It is a block diagram of the structure of a voice room disconnection and reconnection handling system provided by an embodiment of the present invention;

[0047] Figure 3 It is a block diagram of the structure of a voice room disconnection and reconnection handling device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0048] The embodiments of the present invention are described in detail below. The examples of the embodiments are shown in the drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present invention, and should not be construed as a limitation to the present invention. For the step numbers in the following embodiments, they are only set for the convenience of explanation and illustration, and no limitation is imposed on the order between the steps. The execution order of each step in the embodiments can be adjusted adaptively according to the understanding of those skilled in the art.

[0049] In the description of the present invention, "a plurality of" means two or more. If the first and second are described, it is only for the purpose of distinguishing technical features and cannot be construed as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence relationship of the indicated technical features. In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present technology.

[0050] Referring to Figure 1 , an embodiment of the present invention provides a method for processing voice room disconnection and reconnection, which specifically includes the following steps:

[0051] S101. When the first client disconnects from the server, detect the network status of the first client, and send a disconnection reconnection request to the server when the network of the first client returns to normal.

[0052] Specifically, when the first client disconnects from the server due to reasons such as network switching or environmental changes, resulting in network anomalies, the first client continuously detects the network status. After detecting that the network returns to normal, a disconnection reconnection request will be initiated to the server in the background.

[0053] S102. The server returns the second room ID of the voice room where the first client is currently located to the first client, so that the first client obtains the first room ID of the last entered voice room cached locally, and then compares the first room ID with the second room ID.

[0054] Specifically, after the server detects that the first client has disconnected from the server, it starts polling to check if it has received a disconnection reconnection request. If it has received a disconnection reconnection request, it returns the second room ID of the voice room where the first client is currently located to the first client; at the same time, the first client obtains the first room ID when it last entered the voice room cached locally and compares the two, so as to determine whether the room ID of the voice room has changed during the process of the user's disconnection and reconnection.

[0055] Further as an optional implementation manner, the method for processing voice room disconnection and reconnection further includes the following steps:

[0056] When the server does not receive a disconnection reconnection request within a preset time threshold and the first client is currently in a voice room, move the first client out of the voice room where it is currently located.

[0057] Specifically, when the server detects that the first client network and the server network are disconnected, it starts polling whether a disconnection reconnection request is received. If no disconnection reconnection request is received within a preset time threshold (such as 5 minutes), the first client is removed from the voice room where it is currently located.

[0058] As an optional implementation, the step of returning the second room ID of the voice room where the first client is currently located to the first client through the server specifically includes:

[0059] A1. Receive a disconnection reconnection request through the server, and detect whether the first client is currently in the voice room;

[0060] A2. When the first client is currently in the voice room, query the second room ID of the voice room where the first client is currently located, and return the second room ID to the first client.

[0061] Specifically, if the server pre-configures an imperceptible disconnection and reconnection mechanism, and the first client initiates a disconnection and reconnection request within a preset time threshold, the first client currently remains in the voice room. At this time, the server queries and obtains the second room ID of the voice room where the first client is currently located, and returns the second room ID to the first client.

[0062] S103: When the first room ID is consistent with the second room ID, obtain the first room password of the first room ID cached locally through the first client, and send the first room password to the server.

[0063] Specifically, when the first room ID is consistent with the second room ID, it means that the voice room ID has not changed during the process of the first client disconnecting and reconnecting. At this time, the first room password used by the first client to enter the voice room last time is also obtained through the local cache, and then the first room password is sent to the server for verification. It should be noted that since the server has obtained the second room ID that is consistent with the first room ID, the first room ID does not need to be sent to the server at this time.

[0064] As an optional implementation, the method for processing the disconnection and reconnection of the voice room further includes the following steps:

[0065] A3. When the first client is not in the voice room at the current moment, the server returns a message indicating that the first client has left the voice room;

[0066] A4. Obtain the first room ID and the first room password of the voice room last entered that are cached locally through the first client, and send the first room ID and the first room password to the server.

[0067] Specifically, if the server pre-configured a non-imperceptible disconnection and reconnection mechanism, or the first client initiated a disconnection and reconnection request outside the preset time threshold, the first client is likely to have been moved out of the voice room it entered last time. At this time, the server inquires that the first client is not in the voice room at the moment, and returns the result to the first client, and then directly obtains the first room ID and the first room password cached locally by the first client and sends them to the server for subsequent verification. It should be noted that since the first client is not in the voice room at this time, it is necessary to send both the first room ID and the first room password to the server for verification. If the verification is successful, it means that neither has changed, and double comparison and verification of the room ID and the room password can also be achieved.

[0068] S104: Verify the first room ID and the first room password through the server. When the verification is successful, authorize the first client to obtain the voice information of the voice room corresponding to the first room ID.

[0069] As an optional implementation, the step of verifying the first room ID and the first room password by the server specifically includes:

[0070] B1. Query the second room password of the voice room corresponding to the first room ID through the server at the current moment;

[0071] B2. Compare the password of the first room with the password of the second room;

[0072] B3. If the password of the first room is consistent with the password of the second room, the verification is successful; otherwise, the verification fails.

[0073] Specifically, the server queries the second room password of the corresponding voice room at the current moment according to the first room ID (or second room ID), and compares the second room password with the first room password. When the comparison is consistent, it means that the room password of the voice room has not changed. At this time, the first client can be authorized to receive voice information of the corresponding voice room.

[0074] Further as an optional implementation manner, the step of authorizing the first client to obtain the voice information of the voice room corresponding to the first room ID specifically includes:

[0075] C1. If the first client is currently in the voice room, authorize the first client to obtain the voice information of the voice room where it is currently located;

[0076] C2. If the first client is not in the voice room at the current moment, authorize the first client to enter the voice room corresponding to the first room ID according to the first room ID and the first room password, and authorize the first client to obtain the voice information of the voice room corresponding to the first room ID.

[0077] Specifically, when the first room password is consistent with the second room password, there are two cases. One is that the first client is in the voice room at the current moment (corresponding to the aforementioned step A2), in which case there is no need to repeat the process of entering the room, and directly authorize the first client to obtain the voice information of the current voice room where it is located; the other is that the first client is not in the voice room at the current moment (corresponding to the aforementioned steps A3 and A4), in which case request to enter the corresponding voice room according to the first room ID and the first room password, and after waiting for the password to be verified correctly, the first client can enter the voice room, and authorize the first client to obtain the voice information of the voice room.

[0078] Further as an optional implementation manner, the voice room disconnection and reconnection processing method further includes at least one of the following steps:

[0079] D1. When the first room ID is inconsistent with the second room ID, move the first client out of the voice room where it is located at the current moment;

[0080] D2. When the server fails to verify the first room ID and the first room password, and the first client is in the voice room at the current moment, move the first client out of the voice room where it is located at the current moment.

[0081] Specifically, if the second room ID returned by the server is inconsistent with the first room ID cached locally by the first client, it means that the room ID of the corresponding voice room has changed. At this time, the client will exit the current voice room, disconnect from the voice platform, and no longer receive the voice information of the voice room; if the server fails to verify the first room ID and the first room password, it means that the room password of the corresponding voice room has changed. At this time, if the client is in the voice room, the client will exit the current voice room, disconnect from the voice platform, and no longer receive the voice information of the voice room. If the client is not in the voice room, directly end the disconnection and reconnection process.

[0082] The method steps of the embodiments of the present invention are described above. It can be understood that when the client in the embodiments of the present invention performs disconnection and reconnection, the second room ID of the voice room where the client is located at the current moment is obtained, and compared with the first room ID of the voice room entered last time cached locally. When the comparison is consistent, the first room password of the first room ID cached locally is obtained, and the first room password is sent to the server for verification. When the verification is passed, the client that has been disconnected and reconnected is authorized to continue obtaining the voice information of the voice room where it is located. In the embodiments of the present invention, when the client performs disconnection and reconnection, the room ID and room password cached by the client are compared and verified, avoiding the situation that the client can continue to receive the voice information of the voice room without verification after the room ID and / or room password of the voice room change, enhancing the security of user privacy and improving the user experience.

[0083] Referring to Figure 2 , the embodiments of the present invention provide a voice room disconnection and reconnection processing system, including:

[0084] A disconnection and reconnection request module, configured to detect the network status of the first client when the first client is disconnected from the server, and send a disconnection and reconnection request to the server when the network of the first client returns to normal;

[0085] A room ID comparison module, configured to return the second room ID of the voice room where the first client is located at the current moment to the first client through the server, so that the first client obtains the first room ID of the voice room entered last time cached locally, and then compares the first room ID with the second room ID;

[0086] A room password acquisition module, configured to obtain the first room password of the first room ID cached locally through the first client when the first room ID is the same as the second room ID, and send the first room password to the server;

[0087] A verification module, configured to verify the first room ID and the first room password through the server, and when the verification is passed, authorize the first client to obtain the voice information of the voice room corresponding to the first room ID.

[0088] The content in the above method embodiments is applicable to the system embodiments of the present invention. The functions specifically implemented by the system embodiments of the present invention are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.

[0089] Referring to Figure 3 , the embodiments of the present invention provide a voice room disconnection and reconnection processing device, including:

[0090] At least one processor;

[0091] At least one memory for storing at least one program;

[0092] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned method for handling reconnection of a voice room disconnection.

[0093] The content in the above method embodiments is applicable to the device embodiments of the present invention. The functions specifically implemented by the device embodiments of the present invention are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.

[0094] The embodiments of the present invention also provide a computer-readable storage medium, which stores a program executable by a processor. The program executable by the processor, when executed by the processor, is used to execute the above-mentioned method for handling reconnection of a voice room disconnection.

[0095] A computer-readable storage medium according to an embodiment of the present invention can execute a method for handling reconnection of a voice room disconnection provided by an embodiment of the method of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0096] The embodiments of the present invention also disclose a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 the method shown.

[0097] In some alternative embodiments, the functions / operations mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the functions / operations involved, two consecutive blocks shown can actually be executed substantially simultaneously or the above blocks can sometimes be executed in the reverse order. In addition, the embodiments presented and described in the flowcharts of the present invention are provided by way of example for the purpose of providing a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated, in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.

[0098] In addition, although the present invention has been described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the above-described functions and / or features may be integrated in a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It should also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present invention. Rather, given the attributes, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the modules will be understood within the ordinary skills of an engineer. Thus, those skilled in the art can implement the present invention as set forth in the claims without undue experimentation. It should also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0099] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0100] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device). For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0101] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection (electronic device) having one or more wirings, a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable media can even be paper or other suitable media on which the above programs can be printed, because the above programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then storing them in a computer memory.

[0102] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.

[0103] In the foregoing description of this specification, descriptions with reference to the terms "one embodiment / example", "another embodiment / example", or "certain embodiments / examples", etc., mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0104] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the claims and their equivalents.

[0105] The above has specifically described the preferred embodiments of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art can also make various equivalent deformations or substitutions without departing from the spirit of the present invention, and these equivalent deformations or substitutions are all included within the scope defined by the claims of this application.

Claims

1. A method for handling reconnection after disconnection in a voice room, characterized in that, it includes the following steps: When the first client disconnects from the server, detect the network status of the first client, and send a reconnection request to the server when the network of the first client returns to normal; The server returns the second room ID of the voice room where the first client is currently located to the first client, so that the first client obtains the first room ID of the last voice room entered and cached locally, and then compares the first room ID with the second room ID; When the first room ID is inconsistent with the second room ID, remove the first client from the voice room where it is currently located. When the first room ID is consistent with the second room ID, obtain the first room password of the first room ID cached locally through the first client, and send the first room password to the server; The server verifies the first room ID and the first room password. When the verification passes, authorize the first client to obtain the voice information of the voice room corresponding to the first room ID. When the verification fails and the first client is currently in the voice room, remove the first client from the voice room where it is currently located; The step of verifying the first room ID and the first room password by the server specifically includes: The server queries the second room password of the voice room corresponding to the first room ID at the current moment; Compare the first room password with the second room password; If the first room password is consistent with the second room password, the verification passes, otherwise, the verification fails.

2. The method for handling reconnection after disconnection in a voice room according to claim 1, characterized in that, the method for handling reconnection after disconnection in the voice room further includes the following steps: When the server does not receive the reconnection request within a preset time threshold and the first client is currently in the voice room, remove the first client from the voice room where it is currently located.

3. The method for handling reconnection after disconnection in a voice room according to claim 1, characterized in that, the step of the server returning the second room ID of the voice room where the first client is currently located to the first client specifically includes: The server receives the reconnection request and detects whether the first client is currently in the voice room; When the first client is currently in the voice room, query the second room ID of the voice room where the first client is currently located, and return the second room ID to the first client.

4. The method for handling reconnection after disconnection in a voice room according to claim 3, characterized in that, the method for handling reconnection after disconnection in the voice room further includes the following steps: When the first client is not currently in the voice room, the server returns that the first client has left the voice room; The first client obtains the first room ID and the first room password of the last-entered voice room cached locally, and sends the first room ID and the first room password to the server.

5. A voice room disconnection and reconnection processing method according to claim 3, wherein, the step of authorizing the first client to obtain the voice information of the voice room corresponding to the first room ID specifically includes: If the first client is currently in a voice room, authorize the first client to obtain the voice information of the voice room where it is currently located; If the first client is not currently in a voice room, authorize the first client to enter the voice room corresponding to the first room ID according to the first room ID and the first room password, and authorize the first client to obtain the voice information of the voice room corresponding to the first room ID.

6. A voice room disconnection and reconnection processing system, wherein, it includes: A disconnection and reconnection request module, configured to detect the network status of the first client when the first client is disconnected from the server, and send a disconnection and reconnection request to the server when the network of the first client returns to normal; A room ID comparison module, configured to return the second room ID of the voice room where the first client is currently located to the first client through the server, so that the first client obtains the first room ID of the last-entered voice room cached locally, and then compares the first room ID with the second room ID; A room password acquisition module, configured to remove the first client from the voice room where it is currently located when the first room ID is inconsistent with the second room ID, and when the first room ID is consistent with the second room ID, obtain the first room password of the first room ID cached locally through the first client, and send the first room password to the server; A verification module, configured to verify the first room ID and the first room password through the server. When the verification is passed, authorize the first client to obtain the voice information of the voice room corresponding to the first room ID. When the verification fails and the first client is currently in a voice room, remove the first client from the voice room where it is currently located; The step of verifying the first room ID and the first room password through the server specifically includes: Query the second room password of the voice room corresponding to the first room ID at the current moment through the server; Compare the first room password with the second room password; If the first room password is consistent with the second room password, the verification is passed, otherwise, the verification fails.

7. A voice room disconnection and reconnection processing device, wherein, it includes: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a voice room disconnection and reconnection processing method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a program executable by a processor, characterized in that the program executable by the processor, when executed by the processor, is used to execute a voice room disconnection and reconnection processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Telephone conference system conventioner off-line reconnection identity authentication method

    CN104580765A

  • Network live broadcast reconnection method and system

    CN107172444A