async def METHOD_NAME(token=None):
    communicator = WebsocketCommunicator(application, "/ws/world/sample/")
    await communicator.connect()
    if token:
        await communicator.send_json_to(["authenticate", {"token": token}])
        await communicator.receive_json_from()
    try:
        yield communicator
    finally:
        await communicator.disconnect()