The message service alerts an editor of the current working page status, such as when an editor edits a page property or submits a page for editing.
The message service store uses a central message pool with two main parts:
A **central message hub service**Â that supports other parts in adding or removing items.
A **widget container**Â that displays the notification items for a current working page to a user.
## Adding message service component
The message service is the central hub which is registered in the Optimizely Framework ShellModule.
To refer to the message service, use a dependency to resolve it.
## Methods
## Examples
### Add a page property to the message queue
The following example code shows how to to add a `page
` property item error to the global message queue.
### Remove a page property from the message queue
The following example code shows how to remove a `page
` property item error from the global message queue.
### Query error items in the message queue
The following example code shows how to query error items with a specific `contextTypeName
` and `contextId
` in the global message queue.
### Observe a message in the message queue
The following example code shows how to observe a message with a specific `contextTypeName
` and `contextId
` in the global message queue, with query conditions.
## Message service listener widget
Currently the **[NotificationStatusBar]** widget is injected to the status bar and observes changes in the message queue related to the current working page. The widget then displays message elements for the current working page, such as errors, warnings and notifications.