From 84cff0483e89f534b295a2fd13c23e55ce4945f4 Mon Sep 17 00:00:00 2001 From: Andre Hahn Pereira Date: Mon, 28 Oct 2019 15:28:05 -0300 Subject: [PATCH] Fix pitaya client interface (#117) --- client/pitayaclient.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/pitayaclient.go b/client/pitayaclient.go index 6e83e818..b97d9440 100644 --- a/client/pitayaclient.go +++ b/client/pitayaclient.go @@ -22,14 +22,16 @@ package client import ( "github.com/topfreegames/pitaya/conn/message" + "github.com/topfreegames/pitaya/session" ) type PitayaClient interface { ConnectTo(addr string) error ConnectToTLS(addr string, skipVerify bool) error + ConnectedStatus() bool Disconnect() + MsgChannel() chan *message.Message SendNotify(route string, data []byte) error SendRequest(route string, data []byte) (uint, error) - ConnectedStatus() bool - MsgChannel() chan *message.Message + SetClientHandshakeData(data *session.HandshakeData) }