Merge pull request #7 from jweslley/private-channel-payload

Private channel payload
This commit is contained in:
Claudemiro
2016-01-28 07:41:57 -02:00
+1 -1
View File
@@ -129,7 +129,7 @@ func onMessage(conn *websocket.Conn, w http.ResponseWriter, r *http.Request, ses
if isPresence || isPrivate {
toSign := []string{connection.SocketID, channelName}
if isPresence {
if isPresence || len(subscribeEvent.Data.ChannelData) > 0 {
toSign = append(toSign, subscribeEvent.Data.ChannelData)
}