Skip to content

Commit

Permalink
Fix pitaya client interface (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehp committed Oct 28, 2019
1 parent 39da900 commit 84cff04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/pitayaclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 84cff04

Please sign in to comment.