Skip to content

Commit

Permalink
Merge branch 'master' of github.com:centrifugal/centrifugo
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 20, 2023
2 parents d134e8f + c6416a6 commit 5de3b4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/proxy/subscribe_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func (h *SubscribeHandler) Handle(node *centrifuge.Node) SubscribeHandlerFunc {

var info []byte
var data []byte
var expireAt int64
var extra SubscribeExtra
if subscribeRep.Result != nil {
if subscribeRep.Result.B64Info != "" {
Expand Down Expand Up @@ -182,10 +183,13 @@ func (h *SubscribeHandler) Handle(node *centrifuge.Node) SubscribeHandlerFunc {
if result.Override != nil && result.Override.ForcePositioning != nil {
positioning = result.Override.ForcePositioning.Value
}

expireAt = result.ExpireAt
}

return centrifuge.SubscribeReply{
Options: centrifuge.SubscribeOptions{
ExpireAt: expireAt,
ChannelInfo: info,
EmitPresence: presence,
EmitJoinLeave: joinLeave,
Expand Down

0 comments on commit 5de3b4d

Please sign in to comment.