diff --git a/ably/proto_presence_message.go b/ably/proto_presence_message.go index b1f9ea58..1a50bbc1 100644 --- a/ably/proto_presence_message.go +++ b/ably/proto_presence_message.go @@ -52,13 +52,13 @@ type PresenceMessage struct { } func (m PresenceMessage) String() string { - return fmt.Sprintf("", [...]string{ + return fmt.Sprintf("", [...]string{ "absent", "present", "enter", "leave", "update", - }[m.Action], m.ClientID, m.Data) + }[m.Action], m.ID, m.ConnectionID, m.ClientID, m.Data) } func (msg *PresenceMessage) isServerSynthesized() bool { diff --git a/ably/proto_protocol_message.go b/ably/proto_protocol_message.go index ecbb476e..1eb62a62 100644 --- a/ably/proto_protocol_message.go +++ b/ably/proto_protocol_message.go @@ -178,8 +178,8 @@ func (msg *protocolMessage) String() string { case actionDetached: return fmt.Sprintf("(action=%q, channel=%q)", msg.Action, msg.Channel) case actionPresence, actionSync: - return fmt.Sprintf("(action=%q, id=%q, channel=%q, timestamp=%d, presenceMessages=%v)", - msg.Action, msg.ConnectionID, msg.Channel, msg.Timestamp, msg.Presence) + return fmt.Sprintf("(action=%q, id=%q, channel=%q, timestamp=%d, connectionId=%v, presenceMessages=%v)", + msg.Action, msg.ConnectionID, msg.Channel, msg.Timestamp, msg.ConnectionID, msg.Presence) case actionMessage: return fmt.Sprintf("(action=%q, id=%q, messages=%v)", msg.Action, msg.ConnectionID, msg.Messages)