No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.envrc
.gitignore
Gopkg.toml
LICENSE
README.md
app.yaml
handler.go
history.go
history_test.go
hub.go
hub_test.go
main.go
makefile
member.go
room.go
room_test.go

README.md

gchat

Overview

gchat is chat server based on websocket.

Install

go get github.com/midorigreen/gchat

Usage

API Document

param value
room chat room name.
name register user name.

Start-up

% ./gchat -h
Usage of ./gchat:
  -addr string
        server port (default ":8080")

Client Sample

wscat use. ex) mac os

brew install wscat

ex) connect

% wscat -c "wc://localhost:3000/chat?room=gchat-usage&name=midori"
connected (press CTRL+C to quit)
> Hello!!

< [room name]: user-name
< gchat-usage:midori
 Hello!!