Skip to content

Ryrahul/Guff-Gaff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guff Gaff

Guff Gaff is a backend for a proper chat application with private and group messaging using WebSockets. It provides a real-time communication between users.

Features

  • WebSockets: Uses WebSockets for real-time communication, allowing for instant messaging and updates.
  • Private Messaging: Enables users to send private messages to each other.
  • Group Messaging: Allows users to create and participate in group conversations.

Getting Started

Prerequisites

  • Node.js version 18 or later

Installation

  1. Clone the repository:
git clone [email protected]:Ryrahul/Chat.git
  1. Install dependencies:
npm install
  1. Start the server:
npm run dev

Usage

To use Guff Gaff, you can send WebSocket messages to the server. You can use a tool like Socket.IO or a programming language library to connect to the WebSocket server.

For example, to connect to the WebSocket server using Socket.IO, you can use the following code:

this.httpServer = http.createServer(function (request, response) {
  console.log(new Date() + " Received request for " + request.url);
  response.writeHead(404);
  response.end();
});
this.httpServer.listen(8080, function () {
  console.log(new Date() + " Server is listening on port 8080");
});
this.wsServer = new WebSocketServer({
  httpServer: this.httpServer,
  autoAcceptConnections: true,
});

Contributing

Contributions are welcome!

License

Guff Gaff is licensed under the MIT License. See the LICENSE file for details.

About

Backend for a Chat app Using WebSockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published