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