diff --git a/events_stream.go b/events_stream.go index e946236..cb97b78 100644 --- a/events_stream.go +++ b/events_stream.go @@ -102,6 +102,9 @@ func (e *eventStream) listen() (connected chan bool) { break } + if notifyResponse.Action == "logout" { + e.disconnect() + } if notifyResponse.Status == "connected" { connected <- true } else if notifyResponse.Status == "disconnected" {