code: def run(self):
          
          try:
              while True:
                  message = self.connection.recv()
                  result = self.on_message(message)
                  if result:
                      self.connection.send(result)
          except SelenolWebSocketClosedException as ex:
              self.on_closed(0, '')
              raise SelenolWebSocketClosedException() from ex
docs: Run the service in infinitive loop processing requests.