This is a simple chat application built with Go and Socket.IO. It allows real-time communication between clients via WebSocket.
Todo: Integrated with database
Before you begin, ensure you have the following installed:
Demo with multiple client https://sock.cakno.online/public/
2024-09-04.17-46-45.mp4
Demo with specific client (on branch -> chat-specific-user) https://specific-sock.cakno.online/public/
2024-09-04.17-54-31.mp4
-
Clone the Repository:
git clone https://github.com/Caknoooo/go-socket-io cd go-socket-io
-
Install Dependencies Make sure you are in the project directory and run:
go mod tidy
-
Start the server To start the server, run:
go run main.go
-
Access the Application in a Browser: Open two or more browser tabs and navigate to:
http://localhost:8222/public
Each tab will act as a chat client. You can send messages from one tab and see them appear in the other tab in real-time.
- Connection Issues: Ensure there are no network issues or firewall settings blocking the connection.
- Dependency Errors: If you encounter dependency errors, make sure to run go mod tidy to update the modules.