• Main entry point; see usage below. Creates a webtransport session with the specified URL and then returns a writer object. The writer objects accepts json via obj.write_json(json).

    let r = get_json_writer("https://localhost:1234/webtransport")
    r.write_json({'msg': 'init' , 'time' : (new Date())})

    Parameters

    • url: string

    Returns any