Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amirhnajafiz/chat-rtc

Real time server for chatting with Golang.
https://github.com/amirhnajafiz/chat-rtc

chat go golang real-time realtime rtc websocket websocket-server websockets

Last synced: 3 months ago
JSON representation

Real time server for chatting with Golang.

Awesome Lists containing this project

README

        

# Chat RTC

In this project we are going to use ```fiber``` websockets and Golang
```channels``` to create a Real Time Server in order to make
a Real Time Communication system.


## What is RTC?

Real-Time Communication (RTC) is a
development platform for delivering
real-time audio and video content, or
any kind of media around the world.

## Connections

Each user connects to server by calling ```/ws``` endpoint
to create a websocket. After that each data is being processed
by our rtc server.



schema


## Run

In order to start application you can use in terminal build
commands or Docker.

### In terminal

```shell
go build -o main
chmod +x ./main
./main --port 8080
```

### Docker

```shell
docker build . --build-args PORT=8080 -t chat-rtc:v0.1
docker run -d -it --port 8080:8080 char-rtc:v0.1
```

In your browser open ```localhost:8080```.