Skip to content

Commit dc1c4b4

Browse files
committed
Merge branch 'rogeriopvl' into prep-v1.2.1
2 parents 2d35ba2 + 07732b7 commit dc1c4b4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/pusher/channel.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def users(params = {})
120120
# @param custom_string [String] Allows signing additional data
121121
# @return [String]
122122
#
123+
# @raise [Pusher::Error] if socket_id or custom_string invalid
124+
#
123125
def authentication_string(socket_id, custom_string = nil)
124126
validate_socket_id(socket_id)
125127

@@ -157,6 +159,8 @@ def authentication_string(socket_id, custom_string = nil)
157159
#
158160
# @return [Hash]
159161
#
162+
# @raise [Pusher::Error] if socket_id or custom_data is invalid
163+
#
160164
# @private Custom data is sent to server as JSON-encoded string
161165
#
162166
def authenticate(socket_id, custom_data = nil)

lib/pusher/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def notify(interests, data = {})
345345
#
346346
# @return [Hash]
347347
#
348+
# @raise [Pusher::Error] if channel_name or socket_id are invalid
349+
#
348350
# @private Custom data is sent to server as JSON-encoded string
349351
#
350352
def authenticate(channel_name, socket_id, custom_data = nil)

0 commit comments

Comments
 (0)