Skip to content

Commit

Permalink
pubnub set property channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithnn committed Jan 27, 2020
1 parent ea88afa commit 53417cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protocols/sub/pubnub.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func (sub *PubnubSubscriber) receive(ec chan error) {

func (sub *PubnubSubscriber) handleMessage(ec chan error) {
for message := range sub.processChannel {
message.SetProperty("channel", sub.pubnubConfig.Topic)
sub.callback(message)
if val, ok := message.GetProperty("ack"); ok && val == "OK" {
err := sub.setLastTime()
Expand Down

0 comments on commit 53417cb

Please sign in to comment.