Online Chat--Introduction and Realization of WebSocket
Before HTML5, browsers and servers communicated through the HTTP protocol, so what's the use of introducing a WebSocket? Imagine a web page broadcasting a score of a football match live in text. Without a WebSocket, the client, or browser, usually updates the score dynamically in two ways: AJAX and long polling.
What is the difference between ...
Posted by phwae on Mon, 28 Feb 2022 18:41:14 +0100
Using WebSocket under thinkphp5
Recently, a project requirement is as follows: the software side will send a request to the server to obtain some information. Then process the acquired information and return the id of the information
Method 1: the software side calls the interface and requests once a minute.
The problem: if tens of thousands of people use the software at th ...
Posted by NTM on Mon, 21 Feb 2022 07:19:47 +0100
Golang open source streaming media audio and video network transmission service - LAL
I Introduction to lallal is an open source live streaming media network transmission project, which is mainly composed of three parts:lalserver: streaming media forwarding server. It is similar to nginx RTMP module and other services, but supports more protocols and provides richer functions.demo: some small applications, such as push and pull ...
Posted by theperfectdrug on Sun, 20 Feb 2022 01:05:11 +0100
Django channels camera real-time video transmission
preface
I have always wanted to be an unmanned car that can be monitored / operated remotely (deliver goods in the school to make money) (LE); Just because of my laziness, I didn't take action.
But my bike was stolen the other day; Angrily, I wrote a real-time pedestrian recognition with opencv. Raspberry sent a camera to identify the guy ...
Posted by GaryC on Fri, 18 Feb 2022 10:12:28 +0100
Using SA token to solve WebSocket handshake authentication
preface
Compared with the single communication mode of Http, WebSocket can actively push messages from the server to the browser. This feature can help us complete some specific services such as order message push, IM real-time chat and so on.
However, WebSocket itself does not provide direct support for "identity authentication", a ...
Posted by dhiren22 on Sun, 13 Feb 2022 17:40:39 +0100
WebSocket notes + SpringBoot integration
WebSocket notes
Websocket: HTML5 WebSocket is designed to replace polling and long connection, so that the client browser has the instant messaging capability of desktop system under C/S framework, and realizes full duplex communication between browser and server. It is based on TCP. Although websocket transmits data through TCP like HTTP, ...
Posted by vfwood on Tue, 25 Jan 2022 07:17:26 +0100
SocketIO introduction + SpringBoot integrates SocketIO to complete real-time communication
Socket.IO notes
Instant messaging is based on TCP long connection. After the connection is established, the client / server can send data to the opposite end at any time for unlimited times, so as to realize the immediacy of server data transmission
HTTP
HTTP is a short link, which is designed to reduce the pressure on the server
...
Posted by dgrinberg on Sun, 23 Jan 2022 16:53:10 +0100
SpringBoot integrates WebSocket (get the real ip address of the client)
When you encounter the demand of "background push", you can't avoid websocket. This time, the demand is a little special. The ip of the client is fixed. You need to distinguish the specific client according to the ip of the client.
However, for future use, I also list another way to obtain the identity of the connected user - the url ...
Posted by alex_savin on Sat, 22 Jan 2022 21:19:24 +0100
Wechat cloud hosting WebSocket practice: message push based on template
WeChat cloud hosting is a cloud based solution based on cloud based native free operation and high availability services provided by WeChat team Tencent cloud team. It does not need servers, and can deploy small program / official account server in 1 minutes.
PC access https://cloud.weixin.qq.com You can immediately start using wechat cloud hos ...
Posted by yoost on Thu, 20 Jan 2022 12:12:21 +0100
Wechat cloud hosting WebSocket practice: message push based on template
WeChat cloud hosting is a cloud based solution based on cloud based native free operation and high availability services provided by WeChat team Tencent cloud team. It does not need servers, and can deploy small program / official account server in 1 minutes.
PC access https://cloud.weixin.qq.com You can immediately start using wechat cloud ho ...
Posted by balkar on Thu, 20 Jan 2022 09:42:08 +0100