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

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

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"
}
```