implement missing client methods

stop gracefully on disconnect
This commit is contained in:
Marcelo Pires
2018-09-06 14:28:54 +02:00
parent ee24023387
commit e70f0f0b52
4 changed files with 93 additions and 38 deletions

View File

@ -19,7 +19,7 @@ func NewGetStream(apiKey string, signature string) GetStream {
}
func (gt GetStream) OutExtension(message *message.Message) {
if message.Channel == string(transport.Subscribe) {
if message.Channel == string(transport.MetaSubscribe) {
//get useriID
gt.UserID = message.Subscription[1:]
message.Ext = gt