[TASK] add websocket testclient
This commit is contained in:
parent
c2c5666977
commit
a2d15c7e1b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue