updateAsync

external fun updateAsync(response: BufferSource): Promise<Void>(source)

The update() method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.

MDN Reference