ing
This commit is contained in:
parent
0b704161e6
commit
e7d766bf07
6
socket/client.go
Normal file
6
socket/client.go
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
package socket
|
||||||
|
|
||||||
|
type Client interface {
|
||||||
|
Connect() (readChan <-chan []byte, writeChan chan<- []byte, err error)
|
||||||
|
Disconnect() error
|
||||||
|
}
|
|
@ -12,6 +12,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
socket.Client
|
||||||
|
|
||||||
socket.ClientConnHandlers
|
socket.ClientConnHandlers
|
||||||
socket.ReadWriteHandlers
|
socket.ReadWriteHandlers
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ import (
|
||||||
var errMalformedURL = errors.New("malformed ws or wss URL")
|
var errMalformedURL = errors.New("malformed ws or wss URL")
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
socket.Client
|
||||||
socket.ClientConnHandlers
|
socket.ClientConnHandlers
|
||||||
socket.ReadWriteHandlers
|
socket.ReadWriteHandlers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user