Skip to content
Browse files

Allow ws in sign_connect_request

  • Loading branch information...
1 parent 84b4804 commit 4de3176ed2a7b512d4e8a909ddefb4ed69a65412 @eloy eloy committed
Showing with 2 additions and 2 deletions.
  1. +2 −1 lib/neighborparrot/auth.rb
  2. +0 −1 lib/neighborparrot/send.rb
View
3 lib/neighborparrot/auth.rb
@@ -3,7 +3,8 @@
module Neighborparrot
def self.sign_connect_request(query, params={})
- sign_request('GET', '/open', query, params)
+ endpoint = query[:service] == 'es' ? '/open' : '/ws'
+ sign_request('GET', endpoint, query, params)
end
def self.sign_send_request(body, params={})
View
1 lib/neighborparrot/send.rb
@@ -33,7 +33,6 @@ def self.send(request, params={})
# Send the message to the broker
# This is the final step of a send request in the reactor process
def send_to_broker(options)
- puts options
params = Neighborparrot.configuration.merge options[:params]
request = options[:request]
# TODO: Refactor

0 comments on commit 4de3176

Please sign in to comment.
Something went wrong with that request. Please try again.