[front end] explanation of websocket and its use in the project (with source code attached)

Write on the front This article will not analyze the difference between websocket and http interface, and will not write too much introduction of basic knowledge. This paper only introduces the practical application of websocket in front-end development (source code attached) As a full duplex UTF-8...

Posted by KDesigns on Tue, 06 Jul 2021 05:54:45 +0930

springboot websocket simplest chat room

This article will use less than 100 lines of code to complete the simplest chat room function. Simplicity is only the most basic point. catalogue Why is there a websocketFour important events of websocket(chat room) effect(chat room) server springboot(chat room) front end Why is there a websockUTF-8...

Posted by psyqosis on Wed, 28 Jul 2021 09:25:13 +0930

Idea of semi-automatic generation of skeleton screen

preface Skeleton screen is not a new concept. It should have existed ten years ago, but the generation method is a little different from the use method. The essential purpose is to improve the user experience without significantly affecting the page performance. Of course, the user experience UTF-8...

Posted by qazwsx on Wed, 08 Dec 2021 08:09:23 +1030

django+channels(websocket) development and nginx deployment

Foreword: because the server needs to feed back the results to the front end in real time in the project, we all know the disadvantages of the previous ajax polling method. Because I've heard a lot about websocket, I just want to upgrade the original project from ajax to websocket recently. AftUTF-8...

Posted by goltoof on Sat, 11 Dec 2021 00:19:29 +1030

netty series: performance is king! Creating a multiplexed http2 server

brief introductionIn the previous article, we mentioned that the client of netty can support multiplexing by using Http2FrameCodec and Http2MultiplexHandler, that is, create multiple sub channels based on a connected channel and process different stream s through sub channels, so as to achieve UTF-8...

Posted by ok on Tue, 14 Dec 2021 13:50:50 +1030

dart series: real time communication, using WebSockets in the browser

brief introduction There are two ways to communicate between web client and server. One is to use HTTP request to request data from server. The disadvantage of this request is that the client can only pull the data from the server and can only poll. Another way is to use WebSocket to establishUTF-8...

Posted by pesale86 on Fri, 17 Dec 2021 16:27:24 +1030

dart series: real time communication, using WebSockets in the browser

brief introductionThere are two ways to communicate between web client and server. One is to use HTTP request to request data from server. The disadvantage of this request is that the client can only pull the data from the server and can only poll.Another way is to use WebSocket to establish a UTF-8...

Posted by datona on Fri, 17 Dec 2021 20:34:19 +1030

Introducing WebSocket into SpringBoot

Introducing WebSocket into SpringBoot 1. Introduce dependency org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-websocket

Posted by Roggan on Sat, 18 Dec 2021 09:28:18 +1030

Spring boot learning solves the problem caused by the loss of annotations caused by the use of cglib proxy in aop in spring boot

When aop is used in spring boot, dynamic proxy will be used. If the annotation on the proxy class is obtained at this time, the acquisition will fail. For example, when using websocket, there will be problems if aop is used on the method. 1. Problem recurrence The following websocket class usesUTF-8...

Posted by brainardp on Wed, 29 Dec 2021 01:42:14 +1030

Java -- network programming

Network programming What is a server? The server is a computer, a computer, but the configuration is very high. Previous code: They all run on their own computers. Some results are also printed on the console or saved to a file. There is no interactive effect. Now I have learned network programUTF-8...

Posted by THEMADGEEK on Wed, 29 Dec 2021 18:08:26 +1030