What Is a Message Event

The MessageEvent interface represents a message received by a target object. This is used to represent messages in: Server-sent events (see EventSource. onmessage ).

What is the difference between message and event?

The difference between events and messages is that events are used for intra-stack communication, whereas messages are used for inter-stack communication.

What is message driven and event driven?

In a message-driven system addressable recipients await the arrival of messages and react to them, otherwise lying dormant. In an event-driven system notification listeners are attached to the sources of events such that they are invoked when the event is emitted.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest