diff --git a/client/socket.go b/client/socket.go index d1a661c..9bb1595 100644 --- a/client/socket.go +++ b/client/socket.go @@ -48,6 +48,7 @@ func NewSocket(sb SocketBuilder, parentContext cuc.Context) (Socket, error) { sh.OnConnect(sc, conn) s := retainSocket() + s.Conn = conn s.ctx = sc s.sh = sh