FireDevOps FireMUD & Ops Projects

πŸ”Œ Protocol Bridging: WebSocket and Telnet (TCP)

This document describes how FireMUD supports both modern and traditional MUD clients by bridging two distinct communication protocols: WebSocket and raw TCP (Telnet). Both are routed into a unified backend session service for shared logic and scalability.


🎯 Bridging Overview

FireMUD enables real-time interaction through two types of client connections:

Client TypeProtocolEntry Point
Web-based clientsWebSocketSpring Cloud Gateway (/ws/**)
Traditional MUD clientsTCP (Telnet)TCP Proxy Service (custom)

Despite their differences, both protocols are normalized into the same internal architecture using a WebSocket-based session layer.


πŸ”· WebSocket Client Flow (Modern Clients)

🌟 WebSocket Flow Benefits


πŸ”Ά Telnet / TCP Client Flow (Legacy Clients)

🌟 TCP Flow Benefits


🧱 Unified Backend Session Logic

The game-session-service is the central component responsible for:

Whether a client is connected via WebSocket directly or tunneled through the TCP Proxy Service, the backend treats all sessions the same.


🀝 Integration Points

Both connection types interface with: