Skip to content
/ ws Public

🌐 WebSocket server for Waifu.it: Powering real-time communication for the Waifu.it website and services using WebSockets. Stay connected, stay live! πŸš€πŸ’¬

License

Notifications You must be signed in to change notification settings

WaifuAPI/ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Waifu.it WebSocket Server

Real-time WebSocket server for Waifu.it, enabling seamless communication between the website and services. πŸš€πŸ’¬

πŸ“Œ Features

  • πŸ”„ Real-time updates for connected clients
  • πŸ” Secure environment with .env support
  • πŸ—„οΈ MongoDB integration for persistent data
  • ⚑ Optimized WebSocket handling using ws

πŸ› οΈ Setup

1️⃣ Clone the Repository

git clone [email protected]:WaifuAPI/ws.git
cd websocket

2️⃣ Install Dependencies

npm install

3️⃣ Configure Environment Variables

Create a .env file in the root directory and add:

MONGO_URI=your_mongodb_connection_string
PORT=3000

4️⃣ Start the Server

Development Mode:

npm run dev

Production Mode:

npm start

πŸ“œ Scripts

Command Description
npm run dev Start server with nodemon
npm start Start server in production
npm run lint Lint the codebase (if ESLint added)

πŸ“‘ WebSocket Usage

  • Clients can connect via ws://localhost:3000 (or your deployed URL).
  • Listen for messages and send real-time updates.

πŸ—οΈ Built With

  • Node.js – JavaScript runtime
  • ws – Lightweight WebSocket library
  • MongoDB – Database integration
  • dotenv – Environment variable management

πŸ’– Waifu.it - Bringing anime magic to real-time! 🌸

About

🌐 WebSocket server for Waifu.it: Powering real-time communication for the Waifu.it website and services using WebSockets. Stay connected, stay live! πŸš€πŸ’¬

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published