Skip to content

phongnghia/example-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example websocket

Getting Started

Java + Spring Boot (API & Websocket) + MySQL

Note

Elasticsearch - deprecated - will update it later


CONNECT
accept-version:1.1,1.0
heart-beat:10000,10000

^@


SUBSCRIBE
id:sub-1
destination:/topic/products

^@

SEND
destination:/app/products.save
content-type:application/json

{"name":"iPhone 15","price":"999","description":"IPHONE"}^@

SEND
destination:/app/products.getAll

^@

SEND
destination:/app/products.findById

^@

UNSUBSCRIBE
id:sub-1

^@

System design

(Example design - in the simplest way)

Design

Technology design system

UI

Login

Create and Access to Chat application

Notification

Send mail

Note

Update system design (Workflow, ...) - Later

Chat Application in Production

Access

Create

Verification code

Main app

Messages

Mail user code

Mail verification code

About

WebSocket-Chat-Lab – A real-time chat application built to explore Full-duplex communication. Focused on mastering WebSocket handshakes, event-driven messaging, and state management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors