[TASK] add websocket testclient

This commit is contained in:
Martin Geno 2017-11-18 09:55:13 +01:00
parent c2c5666977
commit a2d15c7e1b
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ type Client struct {
readQuit chan bool
}
func NewTestClient(out chan *Message) *Client {
return &Client{
out: out,
}
}
func NewClient(s *Server, ws *websocket.Conn) *Client {
if ws == nil {