SpringBoot-WebSocket browser-server two-way communication

Article directory Introduction to WebSockets Getting Started Case WebSocket Introduction WebSocket is a new network protocol based on TCP. It realizes full-duplex communication between the browser and the server – the browser and the server only need to complete a handshake, and a persistent connection can be created between the two and bidirectional data transmission […]

SpringCloud integrates WebSocket and rabbitMQ

Article Directory summary Overall architecture process Explanation of technical terms technical details summary Summary Requirement goal: In the springcloud project, realize real-time refresh of high-frequency simple data to the API externally. Goal achieved: 1. Lightweight data can be refreshed in real time using WebSocket. The configuration is simple and easy to use. If the data […]

Linux C/C++ Server websocket protocol and server implementation

Original text https://www.cnblogs.com/go-ahead-wsg/p/17294745.html The server needs to actively push (long connection) data to the client, usually using the websocket protocol, such as real-time stock information data, etc.; the websocket server is implemented by the websocket protocol + reactor Comparing the websocket protocol with the http protocol, the http protocol is a protocol designed for web […]

Django3 framework-(3)-[Using websocket]: Using channels to implement websocket functions; simplified configuration and actual usage

Overview: I have written several blog posts before about how Django uses channels to implement websocket functions. With the use and actual maintenance of the project, the relevant processing methods have been reset. Generally speaking, the front and back ends only maintain a global connection and carry data to determine specific operations. The general business […]

Vue.js WebSocket Integration Guide: The perfect solution for real-time communication

Introduction WebSocket is a communication protocol that enables two-way communication in web applications. It allows a persistent, low-latency connection between a client and a server for real-time data transfer. Compared with traditional HTTP requests, WebSocket is more suitable for applications that require real-time and interactivity. Why do you need WebSocket? WebSocket solves some limitations of […]

38 | WebSocket: TCP in the Sandbox

When I talked about the TCP/IP protocol stack before, I said that there is “TCP Socket”, which is actually a functional interface through which the TCP/IP protocol stack can be used to send and receive data at the transport layer. So, did you know that there is another thing called “WebSocket”? Judging from the names […]

Using webSocket in Spring Boot to implement real-time message push

Before writing this blog, I looked through a lot of information and read many webSocket-related blog posts on CSDN about webSocket, but I did not find a relatively complete one. Most of them were incomplete and talked about related concepts, but In the actual demo process, most of the code is directly omitted, and then […]

How to remotely access the local WebSocket server from the public network

The local websocket server is exposed to the public network for access [cpolar intranet penetration] Article directory The local websocket server is exposed to the public network for access [cpolar intranet penetration] 1. Java server demo environment 2. Introduce the netty framework maven coordinates encapsulated in the third package into the pom file 3. Create […]

Basic use of WebSocket

1. Client 1. Global use 1. Configuration //webSocketPlugin.js export default {<!– –> install(Vue) {<!– –> let socket = null; let reconnectInterval = 60000; // Reconnect interval (milliseconds) connect(); function connect() {<!– –> socket = new WebSocket(‘ws://192.168.0.55:9979/api/show/websocket/12’); socket.onopen = () => {<!– –> console.log(‘WebSocket connection is opened’); }; socket.onclose = () => {<!– –> console.log(‘WebSocket connection […]