CN112491993A - Communication establishing method and device, electronic equipment and computer readable storage medium - Google Patents

Communication establishing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112491993A
CN112491993A CN202011287582.8A CN202011287582A CN112491993A CN 112491993 A CN112491993 A CN 112491993A CN 202011287582 A CN202011287582 A CN 202011287582A CN 112491993 A CN112491993 A CN 112491993A
Authority
CN
China
Prior art keywords
communication
browser
priority
establishing
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011287582.8A
Other languages
Chinese (zh)
Inventor
刘军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202011287582.8A priority Critical patent/CN112491993A/en
Publication of CN112491993A publication Critical patent/CN112491993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides a communication establishing method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: when a browser establishes communication with a local server through a preset communication interface, determining a communication mode supported by the communication interface; and if the communication modes comprise at least two communication modes, establishing communication between the browser end and the local service end based on the priority of the communication modes. Based on the scheme, the communication can be established based on various communication modes supported by the communication interface and the priority of each communication mode, so that the communication establishment failure caused by the unavailability of a single communication mode is avoided, and the successful establishment of the communication is ensured.

Description

Communication establishing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a communication establishment method and apparatus, an electronic device, and a computer-readable storage medium.
Background
The browser end can establish communication between the local service ends, so that the browser end can access local resources of the client through the local service ends.
At present, communication is established between a browser and a local server in a single communication mode, but in actual use, the single communication mode may cause communication failure, which may cause communication establishment failure between the browser and the local server, and affect normal communication between the browser and the local server.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for establishing communication, where the method includes:
when a browser establishes communication with a local server through a preset communication interface, determining a communication mode supported by the communication interface;
and if the communication modes comprise at least two communication modes, establishing communication between the browser end and the local service end based on the priority of the communication modes.
Optionally, establishing communication between the browser and the local server based on the priority of the communication mode includes:
and according to the sequence of the priority of each communication mode from high to low, trying to establish the communication between the browser end and the local service end through the communication mode corresponding to the priority until the communication between the browser end and the local service end is successfully established.
Optionally, the method further includes:
if the communication between the browser end and the local service end cannot be successfully established in each communication mode according to the sequence of the priority levels of the communication modes from high to low, the step of trying to establish the communication between the browser end and the local service end in the communication mode corresponding to the priority levels according to the sequence of the priority levels of the communication modes from high to low is repeatedly executed until a preset ending condition is reached.
Optionally, the end condition comprises:
and the number of attempts of trying to establish communication between the browser terminal and the local server terminal through the corresponding communication reaches a specified value.
Optionally, the communication means includes at least one of:
http communication;
websocket communication;
and the browser plug-in communicates.
Optionally, the method further includes:
sending a priority acquisition request carrying parameter information to a service server;
and receiving the priority returned by the service server.
In a second aspect, an embodiment of the present application provides a communication establishing apparatus, including:
the communication mode determining module is used for determining the communication mode supported by the communication interface when the browser establishes communication with the local server through the preset communication interface;
and the communication establishing module is used for establishing communication between the browser end and the local server end based on the priority of the communication modes when the communication modes comprise at least two types.
Optionally, when the communication establishing module establishes communication between the browser and the local server based on the priority of the communication mode, the communication establishing module is specifically configured to:
and according to the sequence of the priority of each communication mode from high to low, trying to establish the communication between the browser end and the local service end through the communication mode corresponding to the priority until the communication between the browser end and the local service end is successfully established.
Optionally, the communication establishing module is further configured to:
if the communication between the browser end and the local service end cannot be successfully established in each communication mode according to the sequence of the priority levels of the communication modes from high to low, the step of trying to establish the communication between the browser end and the local service end in the communication mode corresponding to the priority levels according to the sequence of the priority levels of the communication modes from high to low is repeatedly executed until a preset ending condition is reached.
Optionally, the end condition comprises:
and the number of attempts of trying to establish communication between the browser terminal and the local server terminal through the corresponding communication reaches a specified value.
Optionally, the communication means includes at least one of:
http communication;
websocket communication;
and the browser plug-in communicates.
Optionally, the apparatus further includes a priority obtaining module, where the priority obtaining module is configured to:
sending a priority acquisition request carrying parameter information to a service server;
and receiving the priority returned by the service server.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
a memory for storing operating instructions;
a processor, configured to execute the method for establishing communication as shown in any implementation manner of the first aspect of the present application by calling an operation instruction.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for establishing communication shown in any implementation manner of the first aspect of the present application.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the scheme in the embodiment of the application, when the browser establishes communication with the local server through the preset communication interface, the communication modes supported by the communication interface are determined, and if the communication modes include at least two communication modes, the communication between the browser and the local server is established based on the priority of the communication modes. Based on the scheme, the communication can be established based on various communication modes supported by the communication interface and the priority of each communication mode, so that the communication establishment failure caused by the unavailability of a single communication mode is avoided, and the successful establishment of the communication is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a communication establishing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating an embodiment of a method for establishing communication according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a communication establishing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The local http technology and the Websocket technology can be used for communication between the browser and the local server, wherein the local http technology and the Websocket technology are full-duplex communication, can replace the plug-in (control and extension) technology of the browser, and support main streams such as IE, Chrome, Firefox, Safari, Edge and the like and the kernel browser thereof to access local resources. Different from the plug-in technology due to different browsers, the local http technology and the Websocket technology can adopt a unified implementation mode, shield the difference of the browsers, support the cross-network and cross-process communication between the browsers and the local server, and reduce the workload of development, test and maintenance.
At present, browser plug-in mode communication is different in implementation mechanism of each browser, is greatly influenced by environment, and may be disabled to cause unavailable condition.
The local http communication mode has the defect that the service is unavailable when the interface of the local server is occupied or forbidden, and only the IE9 and the browsers above the IE are supported for the IE browser.
The Websocket communication mode has the defect that the service is unavailable when the interface of the local server is occupied or forbidden, and only the IE10 and the browsers above the IE are supported for the IE browser.
Therefore, the problem that single communication cannot be adapted to all browsers exists in the prior art, and when communication fails in a single communication mode, the browsers cannot perform cross-network and cross-process communication with the local server.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a schematic flow chart of a communication establishing method provided in an embodiment of the present application, and as shown in fig. 1, the method mainly includes:
step S110, when the browser establishes communication with the local server through a preset communication interface, determining a communication mode supported by the communication interface;
and step S120, if the communication modes comprise at least two modes, establishing communication between the browser end and the local service end based on the priority of the communication modes.
In the embodiment of the application, a unified communication interface can be pre-established for multiple communication modes, and particularly, a package plug-in script (JavaScript, JS), a local http JS and a Websocket JS are unified interfaces JS in a browser, so that the service JS can be conveniently used. The plug-in JS communicates with and accesses local resources for local plug-in, and the local http JS and Websocket JS communicate with corresponding local http JS and Websocket services in the local server to access the local resources.
In the embodiment of the application, if the browser end supports at least two of browser plug-in communication, http communication and Websocket communication, the priority can be preset for the supported communication modes according to the service requirements, and communication between the browser end and the local server end is realized based on the priority.
Because the communication is established based on a plurality of communication modes supported by the communication interface, the communication establishment of the browser end and the local server end is prevented from being influenced when a single communication mode is impossible.
The method in the embodiment of the application determines the communication modes supported by the communication interface when the browser establishes communication with the local server through the preset communication interface, and establishes communication between the browser and the local server based on the priority of the communication modes if the communication modes include at least two. Based on the scheme, the communication can be established based on various communication modes supported by the communication interface and the priority of each communication mode, so that the communication establishment failure caused by the unavailability of a single communication mode is avoided, and the successful establishment of the communication is ensured.
In an optional manner of the embodiment of the present application, establishing communication between the browser and the local server based on the priority of the communication manner includes:
and according to the sequence of the priority of each communication mode from high to low, trying to establish the communication between the browser end and the local service end through the communication mode corresponding to the priority until the communication between the browser end and the local service end is successfully established.
In the embodiment of the application, communication can be tried to be established in each communication mode in sequence according to the sequence of the priority from high to low until the communication is established successfully, and communication between the browser end and the local server end is carried out in the communication mode.
In an optional manner of the embodiment of the present application, the method further includes:
if the communication between the browser end and the local service end cannot be successfully established in each communication mode according to the sequence of the priority levels of the communication modes from high to low, the step of trying to establish the communication between the browser end and the local service end in the communication mode corresponding to the priority levels according to the sequence of the priority levels of the communication modes from high to low is repeatedly executed until a preset ending condition is reached.
In the embodiment of the application, if all communication modes corresponding to the priorities cannot establish communication successfully according to the order of the priorities, the steps of trying to establish communication sequentially through the communication modes from high to low according to the order of the priorities can be repeated until communication is established successfully or a preset ending condition is reached.
Specifically, the end condition may include: and the number of attempts of trying to establish communication between the browser terminal and the local server terminal through the corresponding communication reaches a specified value.
By setting the ending condition, the number of the attempts of trying to establish the communication does not exceed a specified value, and the influence on user experience caused by overlong waiting time of a user is avoided.
After the number of attempts to establish communication between the browser and the local server in the corresponding communication mode reaches a specified value, the communication establishment process can be ended, and prompt information that communication cannot be established successfully is fed back to the user.
In an optional manner of the embodiment of the present application, the method further includes:
sending a priority acquisition request carrying parameter information to a service server;
and receiving the priority returned by the service server.
According to the embodiment of the application, the related information of the priority can be stored in the service server, and the browser can request the related information of the priority from the service server based on the parameter information.
Specifically, the parameter information may include browser-related information, such as browser version, number of bits, and the like. The parameter information may also include operating system information including operating system version, number of bits, CPU, memory, etc.
As an example, when the browser is an IE browser, and the version of the IE browser is IE6-IE8, the communication mode only supports browser plug-in communication; the IE browser version is IE9, the supported communication modes are browser plug-in communication and http communication, and the priority of the browser plug-in communication can be preset to be higher than that of the http communication; the IE browser version is IE10-IE11, the supported communication modes are browser plug-in communication, http communication and Websocket communication, the priority of the browser plug-in communication can be preset to be higher than that of the http communication, and the priority of the http communication is higher than that of the Websocket communication.
The communication mode can be that http communication and Websocket communication are carried out by browsers such as Chrome, Firefox, Safari, Edge and the like, and the priority of http communication is higher than that of Websocket communication.
The method provided by the embodiment of the application solves the problem that single communication cannot be adapted to all browsers, the strategy is set according to the characteristics of the browsers and the communication priority, when a certain communication service mode is unavailable, another communication mode is automatically switched according to the strategy, and the high availability of cross-network and cross-process communication between the browsers and a local server is improved.
As an example, fig. 2 is a flowchart illustrating a specific implementation manner of a communication establishment method provided in an embodiment of the present application.
As shown in fig. 2, a browser (i.e., a browser end) may initiate a request for obtaining a priority policy in a pass mode by uploading information of the browser and an operating system, and a service server may issue the priority policy in a communication mode to the browser end. The browser end can poll various communication modes and attempt to establish communication according to the sequence of the priorities from high to low, and the local server can process the communication establishment request to establish communication. If the communication is successfully established, the local resources can be accessed through the successfully established communication mode. If the communication is not successfully established, the communication establishment can be repeatedly tried until the upper limit of the retry times is reached, and the communication establishment process is ended.
Based on the same principle as the method shown in fig. 3, fig. 3 shows a schematic structural diagram of a communication establishing apparatus provided in an embodiment of the present application, and as shown in fig. 3, the communication establishing apparatus 20 may include:
the communication mode determining module 210 is configured to determine a communication mode supported by a communication interface when the browser establishes communication with the local server through a preset communication interface;
the communication establishing module 220 is configured to establish communication between the browser and the local server based on the priority of the communication mode when the communication mode includes at least two communication modes.
The device in the embodiment of the application determines the communication modes supported by the communication interface when the browser establishes communication with the local server through the preset communication interface, and establishes communication between the browser and the local server based on the priority of the communication modes if the communication modes include at least two. Based on the scheme, the communication can be established based on various communication modes supported by the communication interface and the priority of each communication mode, so that the communication establishment failure caused by the unavailability of a single communication mode is avoided, and the successful establishment of the communication is ensured.
Optionally, when the communication establishing module establishes communication between the browser and the local server based on the priority of the communication mode, the communication establishing module is specifically configured to:
and according to the sequence of the priority of each communication mode from high to low, trying to establish the communication between the browser end and the local service end through the communication mode corresponding to the priority until the communication between the browser end and the local service end is successfully established.
Optionally, the communication establishing module is further configured to:
if the communication between the browser end and the local service end cannot be successfully established in each communication mode according to the sequence of the priority levels of the communication modes from high to low, the step of trying to establish the communication between the browser end and the local service end in the communication mode corresponding to the priority levels according to the sequence of the priority levels of the communication modes from high to low is repeatedly executed until a preset ending condition is reached.
Optionally, the end condition comprises:
and the number of attempts of trying to establish communication between the browser terminal and the local server terminal through the corresponding communication reaches a specified value.
Optionally, the communication means includes at least one of:
http communication;
websocket communication;
and the browser plug-in communicates.
Optionally, the apparatus further includes a priority obtaining module, where the priority obtaining module is configured to:
sending a priority acquisition request carrying parameter information to a service server;
and receiving the priority returned by the service server.
It is to be understood that the above modules of the communication establishing apparatus in the present embodiment have functions of implementing the corresponding steps of the communication establishing method in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the above communication establishing device, reference may be specifically made to the corresponding description of the communication establishing method in the embodiment shown in fig. 1, and details are not repeated here.
The embodiment of the application provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the communication establishment method provided by any embodiment of the application by calling the operation instruction.
As an example, fig. 4 shows a schematic structural diagram of an electronic device to which an embodiment of the present application is applicable, and as shown in fig. 4, the electronic device 2000 includes: a processor 2001 and a memory 2003. Wherein the processor 2001 is coupled to a memory 2003, such as via a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that the transceiver 2004 is not limited to one in practical applications, and the structure of the electronic device 2000 is not limited to the embodiment of the present application.
The processor 2001 is applied to the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter, and the transceiver 2004 is applied to the embodiments of the present application to implement the functions of the electronic device of the embodiments of the present application to communicate with other devices when executed.
The Processor 2001 may be a CPU (Central Processing Unit), general Processor, DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 2002 may include a path that conveys information between the aforementioned components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 2002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The Memory 2003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
Optionally, the memory 2003 is used for storing application program code for performing the disclosed aspects, and is controlled in execution by the processor 2001. The processor 2001 is configured to execute the application program code stored in the memory 2003 to implement the communication establishment method provided in any embodiment of the present application.
The electronic device provided by the embodiment of the application is applicable to any embodiment of the method, and is not described herein again.
Compared with the prior art, when the browser establishes communication with the local server through the preset communication interface, the communication modes supported by the communication interface are determined, and if the communication modes include at least two types, communication between the browser and the local server is established based on the priority of the communication modes. Based on the scheme, the communication can be established based on various communication modes supported by the communication interface and the priority of each communication mode, so that the communication establishment failure caused by the unavailability of a single communication mode is avoided, and the successful establishment of the communication is ensured.
The embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the method for establishing communication shown in the above method embodiment.
The computer-readable storage medium provided in the embodiments of the present application is applicable to any of the embodiments of the foregoing method, and is not described herein again.
Compared with the prior art, when the browser establishes communication with the local server through the preset communication interface, the communication modes supported by the communication interface are determined, and if the communication modes include at least two types, communication between the browser and the local server is established based on the priority of the communication modes. Based on the scheme, the communication can be established based on various communication modes supported by the communication interface and the priority of each communication mode, so that the communication establishment failure caused by the unavailability of a single communication mode is avoided, and the successful establishment of the communication is ensured.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for establishing a communication, comprising:
when a browser establishes communication with a local server through a preset communication interface, determining a communication mode supported by the communication interface;
and if the communication modes comprise at least two communication modes, establishing communication between the browser end and the local service end based on the priority of the communication modes.
2. The method of claim 1, wherein the establishing communication between the browser side and the local server side based on the priority of the communication manner comprises:
and according to the sequence of the priority of each communication mode from high to low, trying to establish the communication between the browser end and the local service end through the communication mode corresponding to the priority until the communication between the browser end and the local service end is successfully established.
3. The method of claim 2, further comprising:
if the communication between the browser end and the local service end cannot be successfully established in each communication mode according to the sequence of the priority levels of the communication modes from high to low, the step of trying to establish the communication between the browser end and the local service end in the communication mode corresponding to the priority levels according to the sequence of the priority levels of the communication modes from high to low is repeatedly executed until a preset end condition is reached.
4. The method of claim 3, wherein the end condition comprises:
and the number of attempts of trying to establish the communication between the browser end and the local server end through the corresponding communication reaches a specified value.
5. The method of claim 3, wherein the communication means comprises at least one of:
http communication;
websocket communication;
and the browser plug-in communicates.
6. The method according to any one of claims 1-5, further comprising:
sending a priority acquisition request carrying parameter information to a service server;
and receiving the priority returned by the service server.
7. An apparatus for establishing a communication, comprising:
the communication mode determining module is used for determining the communication mode supported by the communication interface when the browser establishes communication with the local server through the preset communication interface;
and the communication establishing module is used for establishing communication between the browser end and the local server end based on the priority of the communication modes when the communication modes comprise at least two types.
8. The apparatus of claim 7, wherein the communication establishing module, when establishing the communication between the browser and the local server based on the priority of the communication manner, is specifically configured to:
and according to the sequence of the priority of each communication mode from high to low, trying to establish the communication between the browser end and the local service end through the communication mode corresponding to the priority until the communication between the browser end and the local service end is successfully established.
9. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of claims 1-6 by calling the operation instruction.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1-6.
CN202011287582.8A 2020-11-17 2020-11-17 Communication establishing method and device, electronic equipment and computer readable storage medium Pending CN112491993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011287582.8A CN112491993A (en) 2020-11-17 2020-11-17 Communication establishing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011287582.8A CN112491993A (en) 2020-11-17 2020-11-17 Communication establishing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112491993A true CN112491993A (en) 2021-03-12

Family

ID=74930954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011287582.8A Pending CN112491993A (en) 2020-11-17 2020-11-17 Communication establishing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112491993A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010237A (en) * 2021-03-23 2021-06-22 税友软件集团股份有限公司 Data interaction method, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401925A (en) * 2013-07-31 2013-11-20 五八同城信息技术有限公司 Method for synchronizing multiple webpages in single connection manner
CN103685269A (en) * 2013-12-12 2014-03-26 Tcl集团股份有限公司 Method and system for both-way communication between web browser and server
CN104484823A (en) * 2014-11-26 2015-04-01 中金金融认证中心有限公司 Method and system for PKI (public key infrastructure) services of electronic bank

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401925A (en) * 2013-07-31 2013-11-20 五八同城信息技术有限公司 Method for synchronizing multiple webpages in single connection manner
CN103685269A (en) * 2013-12-12 2014-03-26 Tcl集团股份有限公司 Method and system for both-way communication between web browser and server
CN104484823A (en) * 2014-11-26 2015-04-01 中金金融认证中心有限公司 Method and system for PKI (public key infrastructure) services of electronic bank

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010237A (en) * 2021-03-23 2021-06-22 税友软件集团股份有限公司 Data interaction method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2016184175A1 (en) Database processing method and apparatus
CN110308880B (en) Log printing method, system, computer device and computer readable storage medium
CN107357885B (en) Data writing method and device, electronic equipment and computer storage medium
CN115794317B (en) Processing method, device, equipment and medium based on virtual machine
CN108664343B (en) State calling method and device for micro-service
CN111666088A (en) Pod replacement method and device, electronic equipment and computer-readable storage medium
CN112818336A (en) Data access method, data access device and computer readable storage medium
CN110333916B (en) Request message processing method, device, computer system and readable storage medium
CN112491993A (en) Communication establishing method and device, electronic equipment and computer readable storage medium
CN111526046A (en) Method, device, equipment and storage medium for setting BMC (baseboard management controller) time
CN112738181B (en) Method, device and server for cluster external IP access
CN108111630B (en) Zookeeper cluster system and connection method and system thereof
CN111638979A (en) Call request processing method and device, electronic equipment and readable storage medium
CN112637121B (en) Data port updating method and device, electronic equipment and readable storage medium
CN111913815A (en) Call request processing method and device, electronic equipment and readable storage medium
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN114244758B (en) Network diagnosis method, storage medium, electronic equipment and system of android platform
CN113656374A (en) Method and device for processing service message with attachment
CN110311936B (en) Communication method and device between clients, electronic equipment and storage medium
JP2018137637A (en) Communication network and communication terminal
CN107506491B (en) OSD data distribution method and device of distributed file system
CN112532699B (en) Data port updating method and device, electronic equipment and readable storage medium
CN112511603B (en) Data port updating method and device, electronic equipment and readable storage medium
CN112333262A (en) Data updating prompting method and device, computer equipment and readable storage medium
CN105119927A (en) Message sending, receiving method and terminal and message sending system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312

RJ01 Rejection of invention patent application after publication