# File lib/stomp/connection.rb, line 332 def poll # No need for a read lock here. The receive method eventually fulfills # that requirement. return nil if @socket.nil? || !@socket.ready? receive end