Skip to content

Commit ec080fe

Browse files
Merge pull request #209 from steph-crown/main
feat(websocket): implement WebSocket gateway for real-time communication
2 parents e1b13d2 + 77079dc commit ec080fe

15 files changed

+1684
-12
lines changed

BackEnd/.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ EMAIL_QUEUE_MAX_RETRIES=5
6060
EMAIL_QUEUE_RETRY_DELAY=5000
6161
EMAIL_RATE_LIMIT=100
6262

63+
# WebSocket Configuration
64+
WS_RATE_LIMIT_MAX=60
65+
WS_RATE_LIMIT_WINDOW_MS=60000
66+
WS_PING_INTERVAL=25000
67+
WS_PING_TIMEOUT=20000
68+
WS_MESSAGE_HISTORY_LIMIT=200
69+
70+
# CORS_ORIGINS is also used for WS allowed origins (comma-separated)
71+
# CORS_ORIGINS=http://localhost:3000,http://localhost:3001
72+
6373
# Stellar Network Configuration
6474
STELLAR_NETWORK=testnet
6575
# Used for Horizon API calls (e.g. account sequence)

0 commit comments

Comments
 (0)