- docker
- golang
docker-compose up -d
go run main.go
// open new terminal
cd client
go run clent.go -user=USERNAME -pass=PASSWORD
send [USER_ID] [MSG]
if USER_ID == 0 - broadcast to all online users
users
get count of online users
exit
POST
/user/new - create new user
/user/login - login and get cookie
{
"email": string,
"password": string
}
GET
/notification/subscribe - get ws connet with server
POST
/notification/send
{
"toUser": uint,
"msg": string
}
toUser == 0 - broadcast to all online users
toUser > 0 - send notification to user
GET
/notification/users
{
"count": uint32,
}