<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def after_websocket(self, func: Callable, name: AppOrBlueprintKey=None) -> Callable: """Add an after websocket function. This is designed to be used as a decorator. An example usage, .. code-block:: python @app.after_websocket def func(response):
 return response Arguments: func: The after websocket function itself. name: Optional blueprint key name. """

        handler = ensure_coroutine(func)
        self.after_websocket_funcs[name].append(handler)
        return func