Archived
2
0

should resolve #46

This commit is contained in:
Craig
2020-04-05 03:49:43 +00:00
parent 19466b5625
commit 362cf6c254
8 changed files with 39 additions and 24 deletions

View File

@ -19,7 +19,7 @@ type Session interface {
SetConnected(connected bool) error
SetSocket(socket WebSocket) error
SetPeer(peer Peer) error
Address() *string
Address() string
Kick(message string) error
Write(v interface{}) error
Send(v interface{}) error

View File

@ -3,7 +3,7 @@ package types
import "net/http"
type WebSocket interface {
Address() *string
Address() string
Send(v interface{}) error
Destroy() error
}