Skip to content

Commit

Permalink
add print
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithnn committed Jun 25, 2020
1 parent ccd12af commit 26c693e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protocols/sub/pubnub.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ func (sub *PubnubSubscriber) subscribeLoop() string {
errorMsg = "Subscriber Disconnected status received"
return errorMsg
case pubnub.PNConnectedCategory:
fmt.Println("ConnectedCategory")
case pubnub.PNReconnectedCategory:
fmt.Println("ReConnectedCategory")
case pubnub.PNTimeoutCategory:
errorMsg = "Subscriber Timeout status received"
return errorMsg
Expand All @@ -151,6 +153,8 @@ func (sub *PubnubSubscriber) subscribeLoop() string {
case pubnub.PNRequestMessageCountExceededCategory:
errorMsg = "Subscriber Request count exceeded status received"
return errorMsg
default:
fmt.Println("Default Unknown")
}
case message, ok := <-listener.Message:
if !ok {
Expand Down

0 comments on commit 26c693e

Please sign in to comment.