Skip to content

Go-based sample chat app using the WebSocket.The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server.

Notifications You must be signed in to change notification settings

muthukumar89uk/go-chatapp-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Chat App Using WebSocket

This is a simple chat application built using Go and WebSockets. The application allows multiple users to send messages to each other in real-time.

Features

  • Real-time messaging using WebSockets
  • Broadcast messages to all connected users

Project Structure

The project is organized into several packages, each responsible for specific functionalities:

  • handlers : Contains the HTTP request handlers for different API endpoints.
  • config : Contains basic configuration for the Database.
  • models : Defines the data models used in the application.
  • drivers : Contains functions for establish a connection to database.
  • helpers : Custom package that contains all the constants.

Getting Started

Installation

  1. Clone the repository Or Download:

    git clone https://github.com/muthukumar89uk/go-chatapp-websocket.git
    

Click here to directly download it.

Install dependencies:

  go mod tidy

Run the Application

  1. Run the Server:
   go run .
  1. Create the users using the http://localhost:8080/user URL.
  2. Websocket server will start on ws://localhost:8080/ws URL.

About

Go-based sample chat app using the WebSocket.The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user's browser and a server.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages