require 'socket' socket = TCPSocket.open('stream-api.betfair.com', '443') while line = socket.gets puts line.chop end socket.close
but I receive Connection reset by peer which
means the remote end would have sent a reset packet (RST) to kill the connection without an orderly shutdown (close). In that case you know it was the peer(client).
Any help is much appreciated. Thanks!