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

https://github.com/flowerwrong/ruby-chat-server

A chat server in ruby
https://github.com/flowerwrong/ruby-chat-server

Last synced: 3 months ago
JSON representation

A chat server in ruby

Awesome Lists containing this project

README

        

## chat server in ruby

#### Usage

```bash
# start mqtt server
sudo service mosquitto start

# start sub process
ruby sub.rb

# start chat server
ruby server.rb
```

#### Client

```bash
ruby client.rb
```

#### Design

* Store session to redis
* Use mqtt(pub/sub) to exchange message