Skip to content

SerhiiMazurBeetroot/node-websocket-abiosgaming

Repository files navigation

Node.js WebSocket Server

  • Creates a Node.js server

  • WebSocketClient connects to the Abios WebSocket Push API.

  • WebSocketServer creates its own WebSocket Server, which send all the messages from the Abios to connected users.

  • Users from your site are connect to your WebSocketServer and receive all updates from Abios.


1. Requirements

  1. Install Docker v20.10+ Linux, Docker for Mac, Docker for Windows

  2. For Linux additionally install Docker Compose v1.29+


2. Quickstart

  1. Clone the repository

  1. Set up your variables in the .env file

  1. Run docker container
docker-compose up -d --build
  1. To visit the "test client application", and receive all the messages from Abios, open
http://localhost:5000/
  1. Sign in with test user
username: userA
password: userA

3. Project tree

├── .env.example               
├── server.js                  
├── config.js                   
├── userCredentials.json       
├── Dockerfile                  
├── docker-compose.yml          
├── websocket                   
|    └── webSocketClient.js   
|    └── webSocketServer.js   
└── public                     
     └── index.html           
     └── script.js            
     └── style.css            

Releases

No releases published

Packages

No packages published