lib/calliope/api/websocket.rb in calliope-link-1.0.1 vs lib/calliope/api/websocket.rb in calliope-link-1.0.2

- old
+ new

@@ -24,11 +24,11 @@ @client = client @url = URI.parse(create_url(url)) @driver = WebSocket::Driver.client(self) @driver.set_header("User-Id", user_id&.to_i) @driver.set_header("Authorization", password) + @driver.set_header("Client-Name", "Calliope/1.0.2") @driver.set_header("Session-Id", session_id) if session_id - @driver.set_header("Client-Name", "Calliope/#{Calliope::VERSION}") @driver.on(:message) { |frame| handle_dispatch(JSON.parse(frame.data)) } @tcp = TCPSocket.new(@url.host || "localhost", @url.port) @thread = Thread.new { @driver.parse(@tcp.readpartial(4096)) until @dead }