Class: Slanger::PrivateSubscription

Inherits:
Subscription show all
Defined in:
lib/slanger/private_subscription.rb

Instance Attribute Summary

Attributes inherited from Subscription

#connection, #socket

Instance Method Summary collapse

Methods inherited from Subscription

#initialize

Constructor Details

This class inherits a constructor from Slanger::Subscription

Instance Method Details

#subscribeObject



3
4
5
6
7
# File 'lib/slanger/private_subscription.rb', line 3

def subscribe
  return handle_invalid_signature if auth.blank? || invalid_signature?

  Subscription.new(connection.socket, connection.socket_id, @msg).subscribe
end