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

https://github.com/micnncim/schat

Small chat application with gRPC
https://github.com/micnncim/schat

Last synced: 4 months ago
JSON representation

Small chat application with gRPC

Awesome Lists containing this project

README

        

# schat

`schat` is a small chat application with gRPC bidirectional streaming RPC.

## Usage

```
$ schat --help
Usage of schat:
-h string
host of server (default "localhost:8080")
-s run as a server
-u string
username of client (default "anonymous")
```

### Run as Server

```
$ schat -s
2019/07/15 00:35:19 server: starting
2019/07/15 00:35:23 micnncim | hello
```

### Run as Client

```
$ schat -u micnncim
2019/07/15 00:35:21 client: starting
2019/07/15 00:35:21 client: connected to stream
>>> hello
2019/07/15 00:35:23 micnncim | hello
```