docker run -d -p 6379:6379 -v /data --name redis redis
docker run -d -p 8080:8080 --name chat-server dnjscksdn98/websocket-chat:1.0.2
docker run -d -p 8080:8080 --name chat-server dnjscksdn98/websocket-chat:1.0.2-beta
ws://{domainAddress}:8080/ws/chat
/pub/chat/message
/sub/chat/room/{chatRoomId}
POST /chat
Attribute | Type | Required | Description |
---|---|---|---|
name | string | yes | Chat Room Name |
Example Response
{
"id": 1,
"name": "yapp 17th"
}
GET /chat
Example Response
[
{
"id": 1,
"name": "yapp 17th"
},
{
"id": 2,
"name": "marketing team"
}
]
GET /chat/{chatRoomId}
Example Response
[
{
"chatRoomId": 1,
"sender": "tester",
"message": "hello",
"messageType": "TALK"
},
{
"chatRoomId": 1,
"sender": "tester",
"message": "bye",
"messageType": "TALK"
}
]