Skip to content

ablogo/WebSocketServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocketServer

WebSocket server created this chat application.

This project must be used in conjunction with at least two others, one that is an authentication microservice that manage the users, and another microservice that manages chat functions.

It is necessary to develop a WebSocket client, or you can use the one found in this repository.

When connecting to the server, a token must be sent, which is obtained from this authentication microservice.

All logs are sent to a MongoDB database.

Requirements

  • Python 3.12+
  • MongoDB database

Installing

  1. Create a virtual environment
python -m venv .venv
  1. Activate it (Linux, macOS)
source .venv/bin/activate
  • Activate it (Windows PowerShell)
.venv\Scripts\Activate.ps1
  1. Install dependencies
pip install -r requirements.txt
  1. Set configuration file (.env)

The address and port of the websocket server, the connection string of the database and other configurations must be included

  1. Run it locally
python main.py
  1. Use this websocket client to connect and test the websocket server

About

WebSocket server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published