WebSocket Authentication with Subprotocol Token in Java Backend
Background
When implementing real-time bidirectional communication for applications like chat systems, WebSocket connections require proper authentication. While HTTP APIs typically use Authorization headers for token validation, WebSocket connections present a challenge since custom headers cannot be directly set during the upgrade process.
Tw ...
Posted on Sun, 25 Oct 2026 16:48:55 +0000 by Homer30
Implementing Real-Time Messaging with WebSocket Technology
Estbalishing Real-Time Communication
Traditional polling methods for client-server synchronization often result in inefficient bandwidth usage and delayed updates. WebSocket protocol addresses these limitations by enabling full-duplex communication between browsers and servers.
WebSocket Protocol Fundamentals
Core Characteristics
Bidirectional ...
Posted on Wed, 21 Oct 2026 16:49:22 +0000 by andrewmcgibbon
Implementing WebSocket Communication: nginx Proxy and Java Backend Configuration
This guide covers the complete WebSocket implementation workflow using Java, including nginx reverse proxy configuration and Spring Cloud Gateway routing setup. The implementation handles connection management, message communication, and proper proxy forwarding for WebSocket protocols.
nginx Configuration
The nginx configuration establishes an ...
Posted on Tue, 13 Oct 2026 16:54:10 +0000 by carrotcake1029
Implementing WebSocket in Python
The following example focuses on sending messages from the server to the client. Key concepts include:
Singleton pattern
Multithreading
Redis
WebSocket
Running with in Docker containers
#!/usr/bin/env python3
import redis
import threading, sched, json, socket, base64, hashlib, logging
client_data = "" # Data sent to clients
activ ...
Posted on Tue, 29 Sep 2026 16:03:10 +0000 by sajy2k
Working with Commands and Command Filters in SuperSocket 2.0
Introduction
This tutorial explores the command-based architecture in SuperSocket 2.0. We'll examine how to implement custom commands and apply command filters for cross-cutting concerns such as logging and validation. The examples demonstrate a simple calculator service supporting basic artihmetic operations.
Project Setup
Create a .NET Core 3 ...
Posted on Sun, 27 Sep 2026 16:41:04 +0000 by tazdevil
Frontend Architecture: Operations, CLI Publishing, and Testing
Operations Monitoring and Alerting
Online Monitoring and Alerting
A robust production system requires a comprehensive operations framework to ensure stable operation. This includes server monitoring, alerting, and network security prevention. The software lifecycle—development, iteration, and operations—places operations as the critical phase. ...
Posted on Fri, 18 Sep 2026 16:28:27 +0000 by worldworld
Building Scalable HTTP Applications with Cinatra
Overview
Cinatra is a modern C++ HTTP framework designed for high performance and ease of use. Built utilizing C++17 standards, it aims to streamline the development of robust web services. Key architectural features include:
Consistent and minimalistic API design
Header-only library structure
Cross-platform compatibility
High throughput effic ...
Posted on Mon, 14 Sep 2026 16:43:17 +0000 by UTAlan
Implementing Real-Time Communication with WebSocket in WeChat Mini Programs
Data Transmission
Transmit payloads to the server using wx.sendSocketMessage() and monitor incomnig data through wx.onSocketMessage() callbacks.
const packet = JSON.stringify({ action: 'subscribe', channel: 'updates' });
wx.sendSocketMessage({
data: packet,
success: () => console.log('Payload dispatched')
});
wx.onSocketMessage((event) ...
Posted on Wed, 09 Sep 2026 16:40:33 +0000 by bpat1434
Implementing Bidirectional Communication with SockJS
SockJS facilitates real-time, bidirectional communication by providing a WebSocket-like client API. It gracefully falls back to alternative transports (e.g., HTTP streaming) when WebSocket is unavailable.
Creating a Client Connection
Establish a connection by creating a SockJS instance, specifying the server endpoint.
const dataStream = new Soc ...
Posted on Sat, 22 Aug 2026 16:17:09 +0000 by Swardh
Introduction to Chrome DevTools Protocol
What is CDP?
The Chrome DevTools Protocol (CDP) is a debugging interface that enables inspection, monitoring, and control of Chromium, Chrome, and other Blink-based browsers. The protocol is maintained by the Chrome DevTools team and serves as the foundation for tools like Chrome DevTools and Puppeteer.
Using CDP
When you open Chrome DevTools, ...
Posted on Sat, 15 Aug 2026 16:38:13 +0000 by zack45668