MessageEvent: source property
The source property is always null.
Value
null.
- Read-only. Assigning to it throws
TypeError. - When building an event,
sourcecan only be given asnull. - When the event is created with
newwithout it, it isnull.
Examples
js
const event = new MessageEvent('message');
console.log(event.source);Effect: the console prints null.
Corresponding iOS API
There is no corresponding system API. It corresponds to MessageEvent.source in the browser.