Forward input as raw_event to runner

* Also, rename #send to #send_data in order to prevent debugging issues in RubyMine
This commit is contained in:
Sebastian Serth
2021-10-11 09:44:34 +02:00
parent f896d041f8
commit 3240ea7076
3 changed files with 8 additions and 6 deletions

View File

@ -43,7 +43,7 @@ class Runner::Connection
end
# Send arbitrary data in the WebSocket connection
def send(raw_data)
def send_data(raw_data)
encoded_message = encode(raw_data)
Rails.logger.debug { "#{Time.zone.now.getutc}: Sending to #{@socket.url}: #{encoded_message.inspect}" }
@socket.send(encoded_message)