https://github.com/thoughtsunificator/domodel-chat-server
Back-end for domodel-chat
https://github.com/thoughtsunificator/domodel-chat-server
back-end domodel-chat socket-io
Last synced: 5 months ago
JSON representation
Back-end for domodel-chat
- Host: GitHub
- URL: https://github.com/thoughtsunificator/domodel-chat-server
- Owner: thoughtsunificator
- License: mit
- Created: 2021-06-16T19:18:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T09:59:23.000Z (almost 3 years ago)
- Last Synced: 2026-01-12T19:10:42.323Z (5 months ago)
- Topics: back-end, domodel-chat, socket-io
- Language: JavaScript
- Homepage: https://domodel-chat-server.unificator.me
- Size: 990 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# domodel-chat-server
Back-end for [domodel-chat](https://github.com/thoughtsunificator/domodel-chat).
## Getting started
### Installing
- ```npm install```
- ```npm start```
## Events
Once client send an event to the WebSocket server it will usually respond with the same event and/or trigger other events.
### Event.GLOBAL_MESSAGE
```json
{
"message": {
"source": "string",
"date": "Date",
"content": "string"
}
}
```
### Event.NETWORK_MESSAGE
```json
{
"message": {
"source": "string",
"date": "Date",
"content": "string"
}
}
```
### Event.CHANNEL_LIST
```json
{
"query": "string"
}
```
### Event.CHANNEL_JOIN
```json
{
"name": "string"
}
```
### Event.CHANNEL_TOPIC
```json
{
"data": {
"topic": "string",
"name": "string"
}
}
```
### Event.CHANNEL_DISCONNECT
```json
{
"name": "string"
}
```
### Event.CHANNEL_RECONNECT
```json
{
"name": "string"
}
```
### Event.CHANNEL_LEAVE
```json
{
"name": "string"
}
```
### Event.CHANNEL_MESSAGE
```json
{
"channelName": "string",
"message": {
"source": "string",
"date": "Date",
"content": "string"
}
}
```
### Event.CHANNEL_PRIVATE_MESSAGE
```json
{
"channelName": "string",
"message": {
"source": "string",
"date": "Date",
"content": "string"
}
}
```
### Event.CHANNEL_DELETE
```json
{
"name": "string"
}
```
### Event.CHANNEL_MESSAGE_USER
```json
{
"nickname": "string",
"content": "string",
"channelName": "string"
}
```
### Event.CHANNEL_USER_JOINED
```json
{
"channelName": "string",
"user": {
"socketId": "string",
"nickname": "string"
}
}
```
### Event.CHANNEL_USER_LEFT
```json
{
"channelName": "string",
"socketId": "string"
}
```
### Event.USER_RENAME
string
### Event.USER_RENAMED
```json
{
"channelName": "string",
"nickname": "string",
"socketId": "string"
}
```