/go-chat

Simple chat app using Go and WebSocket

Primary LanguageHTML

Chat

A simple chat application built with Go and WebSocket.

  • Uses github.com/gorilla/websocket for the WebSocket implementation
  • Uses goroutines and channels to synchronize around clients

image

Getting started

Clone the repo

git clone https://github.com/sgbj/go-chat.git
cd go-todos

Install packages

go get .

Run the application

go run .

Open a browser to http://localhost:8080

Future

  • Use JSON for messages
  • Support different types of messages (e.g., connected, disconnected, message)
  • Add a name