code: def register_blueprint(self, blueprint, **options):
          '''
          Registers a blueprint on the WebSockets.
          '''
          first_registration = False
          if blueprint.name in self.blueprints:
              assert self.blueprints[blueprint.name] is blueprint, \
                  'A blueprint\'s name collision occurred between %r and ' \
                  '%r.  Both share the same name "%s".  Blueprints that ' \
                  'are created on the fly need unique names.' % \
                  (blueprint, self.blueprints[blueprint.name], blueprint.name)
          else:
              self.blueprints[blueprint.name] = blueprint
              first_registration = True
          blueprint.register(self, options, first_registrationf register_blueprint(self, blueprint, **options):
          '''
          Registers a blueprint on the WebSockets.
          '''
          first_registration = False
          if blueprint.name in self.blueprints:
              assert self.blueprints[blueprint.name] is blueprint, \
                  'A blueprint\'s name collision occurred between %r and ' \
                  '%r.  Both share the same name "%s".  Blueprints that ' \
                  'are created on the fly need unique names.' % \
                  (blueprint, self.blueprints[blueprint.name], blueprint.name)
          else:
              self.blueprints[blueprint.name] = blueprint
              first_registration = True
          blueprint.register(self, options, first_registration)
docs: Registers a blueprint on the WebSockets.