CN206226468U - Based on the instant communicating system that websocket is realized - Google Patents

Based on the instant communicating system that websocket is realized Download PDF

Info

Publication number
CN206226468U
CN206226468U CN201621132341.5U CN201621132341U CN206226468U CN 206226468 U CN206226468 U CN 206226468U CN 201621132341 U CN201621132341 U CN 201621132341U CN 206226468 U CN206226468 U CN 206226468U
Authority
CN
China
Prior art keywords
server
client
module
websocket
gateway
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.)
Expired - Fee Related
Application number
CN201621132341.5U
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.)
Shanghai Cloud Technology Co ltd
Original Assignee
Guangzhou Gather Network Technology Co 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 Guangzhou Gather Network Technology Co Ltd filed Critical Guangzhou Gather Network Technology Co Ltd
Priority to CN201621132341.5U priority Critical patent/CN206226468U/en
Application granted granted Critical
Publication of CN206226468U publication Critical patent/CN206226468U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The utility model is applied to network data processing technique, there is provided a kind of instant communicating system realized based on websocket, including client, gateway and server, the client and server are connected by gateway communication;The gateway includes websocket duplex communication modules, and the client is respectively provided with protocol module corresponding with the websocket duplex communication modules with server;The client also has time frame module and information type judge module;The server includes message transmission module and function call module.Whereby, the data volume of the utility model head file is smaller, and the fragment than xml is smaller, the efficiency high of transmission.

Description

Based on the instant communicating system that websocket is realized
Technical field
The utility model is related to network data processing technique, more particularly to it is a kind of based on websocket realize i.e. When communication system.
Background technology
Technology introduction (for relative colleague's prior art) the integrated third-party platform, the 3rd platform for generally using at present Based on xmpp agreements, xmpp is based on xml, and it defines three roles, client, server, gateway.Communication can be in this three Any two between two-way generation.Server assume responsibility for the route work(of client-information records, connection management and information simultaneously Can, gateway carries the interconnection with isomery instantaneous communication system, and basic latticed form is that single client passes through TCP/IP Be connected to single server, between transmit xml.
With the presence of the data traffic of the server of usual 70% XMPP and nearly 60% repeatedly forwarded, The agreement of xmpp possess at present one it is large-scale it is built on stilts present in data be supplied to multiple addressees, while the mode of xmpp agreements An xml document for single length is encoded as, therefore modification binary data cannot be provided.Therefore, FTP one Http of the sample outside.If inevitable, all data that xmpp agreements additionally provide the file transmission with coding are used Or Base64. be placed in other binary data encrypt session figure in embedded use identical method.And message is too Greatly, it appears too fat to move, flow is wasted.
In summary, prior art there will naturally be inconvenience and defect in actual use, it is therefore necessary to be improved.
Utility model content
For above-mentioned defect, the purpose of this utility model is to provide a kind of IMU realized based on websocket News system, the data volume of its head file is smaller, the efficiency high of transmission.
To achieve these goals, the utility model provides a kind of instant communicating system realized based on websocket, bag Client, gateway and server are included, the client and server is connected by gateway communication;
The gateway includes websocket duplex communication modules, the client and server be respectively provided with it is described The corresponding protocol module of websocket duplex communication modules;
The client also has time frame module and information type judge module;
The server includes message transmission module and function call module.
Instant communicating system of the present utility model, including client, gateway and server, the client and server lead to Cross gateway communication connection;The gateway includes websocket duplex communication modules, and the client is respectively provided with and institute with server State the corresponding protocol module of websocket duplex communication modules;Also there is the client time frame module and information type to sentence Disconnected module;The server includes message transmission module and function call module.Whereby, the data of the utility model head file Amount is smaller, and the fragment than xml is smaller, the efficiency high of transmission.
Brief description of the drawings
Fig. 1 is system structure diagram of the present utility model.
Specific embodiment
In order that the purpose of this utility model, technical scheme and advantage become more apparent, below in conjunction with accompanying drawing and implementation Example, is further elaborated to the utility model.It should be appreciated that specific embodiment described herein is only used to explain The utility model, is not used to limit the utility model.
Referring to Fig. 1, the utility model provides a kind of instant communicating system realized based on websocket, including client End 10, gateway 20 and server 30, the client 10 and server 30 are communicated to connect by gateway 20.
The gateway 20 includes websocket duplex communication modules 21, the client 10 and server 30 be respectively provided with The corresponding protocol module of the websocket duplex communication modules 21;The client 10 also has time frame module 11 and letter Breath type judging module 12;The server 30 includes message transmission module 31 and function call module 32.The utility model is passed The data volume of head file is smaller during transmission of data, and the fragment than xml is smaller, the efficiency high of transmission.
Specifically, the utility model uses websocket duplex communications, based on Transmission Control Protocol, while mobile terminal can be realized (Android, IOS's) is cross-platform, and client 10 sends heartbeat packet and server 30 by the fixed time interval of time frame module 11 Link long is set up, server 30 sends message by message transmission module 31, and is adjusted back by function call module 32 OnMessage methods, client 10 need to be only processed i.e. the data that corresponding server 30 sends inside the method Can, client 30 will send message, it is only necessary to which binding incorporates the service of websocket, calls The information for needing to send, is put into message by session.getAsyncRemote () .sendText (message) the method In, information type judge module 12 made a distinction by field type (word, voice, picture, are input into, burn-after-reading, Red packet, transfers accounts).
In sum, instant communicating system of the present utility model, including client, gateway and server, the client Connected by gateway communication with server;The gateway includes websocket duplex communication modules, the client and server It is respectively provided with protocol module corresponding with the websocket duplex communication modules;The client also have time frame module and Information type judge module;The server includes message transmission module and function call module.Whereby, the utility model head The data volume of file is smaller, and the fragment than xml is smaller, the efficiency high of transmission.
Certainly, the utility model can also have other various embodiments, spiritual and its essence without departing substantially from the utility model In the case of, those of ordinary skill in the art work as can make various corresponding changes and deformation, but these according to the utility model Corresponding change and deformation should all belong to the scope of the claims appended by the utility model.

Claims (1)

1. it is a kind of based on websocket realize instant communicating system, it is characterised in that including client, gateway and server, The client and server is connected by gateway communication;
The gateway includes websocket duplex communication modules, and the client is respectively provided with and the websocket with server The corresponding protocol module of duplex communication module;
The client also has time frame module and information type judge module;
The server includes message transmission module and function call module.
CN201621132341.5U 2016-10-14 2016-10-14 Based on the instant communicating system that websocket is realized Expired - Fee Related CN206226468U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201621132341.5U CN206226468U (en) 2016-10-14 2016-10-14 Based on the instant communicating system that websocket is realized

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201621132341.5U CN206226468U (en) 2016-10-14 2016-10-14 Based on the instant communicating system that websocket is realized

Publications (1)

Publication Number Publication Date
CN206226468U true CN206226468U (en) 2017-06-06

Family

ID=58788758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201621132341.5U Expired - Fee Related CN206226468U (en) 2016-10-14 2016-10-14 Based on the instant communicating system that websocket is realized

Country Status (1)

Country Link
CN (1) CN206226468U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835150A (en) * 2017-09-15 2018-03-23 广州唯品会研究院有限公司 A kind of full media customer service dispatching method and system
CN110011910A (en) * 2019-04-08 2019-07-12 陈鹏 A kind of gateway communication system and gateway communication method for supporting multi-protocols equipment to access

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835150A (en) * 2017-09-15 2018-03-23 广州唯品会研究院有限公司 A kind of full media customer service dispatching method and system
CN107835150B (en) * 2017-09-15 2021-06-04 唯品会(广州)软件有限公司 Full-media customer service scheduling method and system
CN110011910A (en) * 2019-04-08 2019-07-12 陈鹏 A kind of gateway communication system and gateway communication method for supporting multi-protocols equipment to access
CN110011910B (en) * 2019-04-08 2022-01-18 陈鹏 Gateway communication system and gateway communication method supporting multi-protocol device access

Similar Documents

Publication Publication Date Title
CN102238284B (en) Instant messaging method for mobile phone
CN107105414A (en) A kind of income system and method for Big Dipper RDSS short messages and SMS
EP1530355A3 (en) Method and system for providing communication services for hearing-impaired parties
CN102307211A (en) Method for realizing full-screen synchronization of whiteboard
CN102307212A (en) Method for realizing page-turning synchronization
CN105245521B (en) Protocol format conversion method, device and interface platform
CN206226468U (en) Based on the instant communicating system that websocket is realized
CN108449262A (en) A kind of transmission method of instant communication data
CN103595978A (en) Negotiation coding resolution method used for video communication and system thereof
US20020186663A1 (en) End-to-end frame quality classification
CN103684970B (en) The transmission method of media data flow and thin terminal
CN102938782B (en) A kind of message processing method, device and system
CN100546287C (en) A kind of method, system and equipment that good friend's state is provided in instant communication process
CN104618616B (en) Videoconference participant identification system and method based on speech feature extraction
EP2429256A1 (en) Method for negotiating message session relay protocol connection parameters
WO2023078458A1 (en) Call exception processing method and apparatus, and electronic device
US8787918B2 (en) Transmitting data over a mobile telecommunication network
CN106130695A (en) A kind of data transmission method and system
WO2015184780A1 (en) Method, device, and system for processing information
CN107145535A (en) Instant communicating method and device and server
CN107835150A (en) A kind of full media customer service dispatching method and system
CN110545329B (en) Method for improving FTP file transmission speed
CN104703152B (en) A kind of SMS processing and device
EP1981248A3 (en) Terminal control method and service provision system using SIP messaging.
CN107342965A (en) Rich media communications method, system and server

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180327

Address after: 200000 East 304-A27, Shanghai free trade test area, No. 29, building No. 2, Tai Lu, No. 2

Patentee after: Shanghai cloud Technology Co.,Ltd.

Address before: 510000 room 17A (only for office use), room 47, No. 1104, No. 47, Qiao Lin Street, Tianhe North Road, Tianhe District, Guangdong

Patentee before: GUANGZHOU XIANGJU NETWORK TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
DD01 Delivery of document by public notice

Addressee: Shanghai cloud Technology Co.,Ltd.

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170606

CF01 Termination of patent right due to non-payment of annual fee