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