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
- Host: GitHub
- URL: https://github.com/micnncim/schat
- Owner: micnncim
- Created: 2019-07-14T15:59:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T06:07:42.000Z (almost 6 years ago)
- Last Synced: 2024-05-01T15:48:18.442Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```