Skip to content

AmakrushAI/transport-socket

 
 

Repository files navigation

Socket transport layer for UCI Messages

Socket based transport and delivery of messages to and from UCI (since UCI is Rest based only)

[UCI] <---> [Socker Transport Layer] <---> [Frontend]

Features

  • Takes request from chatbot client and send it to UCI adapter to get response and return it back to bot client

Tech

  • [node.js] - evented I/O for the backend
  • [NestJs] - fast node.js network app framework
  • [socket.io] - V4.0.0
  • [redis] - for socket io redis adapter

Installation

Service requires Node.js v12+ to run.

Clone the repo and set the .env variable

REDIS_PORT={REDIS PORT}
SERVER_PORT={SERVER PORT}
ADAPTER_URL={UCI ADAPTER URL}

Install the dependencies and devDependencies and start the server.

git clone https://github.com/Nik720/bot-socket-service.git
cd bot-socket-service
npm i
npm run start

Docs

About

Deliver UCI messages using socket.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 90.8%
  • JavaScript 3.6%
  • Dockerfile 3.0%
  • Shell 2.6%