<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://all.docs.genesys.com/index.php?action=history&amp;feed=atom&amp;title=PEC-Developer%2FCurrent%2FSCAPI%2FMessengerNamespace</id>
	<title>PEC-Developer/Current/SCAPI/MessengerNamespace - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://all.docs.genesys.com/index.php?action=history&amp;feed=atom&amp;title=PEC-Developer%2FCurrent%2FSCAPI%2FMessengerNamespace"/>
	<link rel="alternate" type="text/html" href="https://all.docs.genesys.com/index.php?title=PEC-Developer/Current/SCAPI/MessengerNamespace&amp;action=history"/>
	<updated>2026-04-16T00:21:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://all.docs.genesys.com/index.php?title=PEC-Developer/Current/SCAPI/MessengerNamespace&amp;diff=131268&amp;oldid=prev</id>
		<title>WikiSysop at 13:44, February 22, 2023</title>
		<link rel="alternate" type="text/html" href="https://all.docs.genesys.com/index.php?title=PEC-Developer/Current/SCAPI/MessengerNamespace&amp;diff=131268&amp;oldid=prev"/>
		<updated>2023-02-22T13:44:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:44, February 22, 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot; &gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}succeeded&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}succeeded&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;string&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;function&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The callback &lt;/del&gt;function &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to use if &lt;/del&gt;the operation &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;succeeded&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;A &lt;/ins&gt;function &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;called when &lt;/ins&gt;the operation &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;succeeds&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}failed&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}failed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;string&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;function&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The callback &lt;/del&gt;function &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to use if &lt;/del&gt;the operation &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;failed&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;A &lt;/ins&gt;function &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;called when &lt;/ins&gt;the operation &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;fails&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{!}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
	<entry>
		<id>https://all.docs.genesys.com/index.php?title=PEC-Developer/Current/SCAPI/MessengerNamespace&amp;diff=116312&amp;oldid=prev</id>
		<title>Jumunn: Published</title>
		<link rel="alternate" type="text/html" href="https://all.docs.genesys.com/index.php?title=PEC-Developer/Current/SCAPI/MessengerNamespace&amp;diff=116312&amp;oldid=prev"/>
		<updated>2022-03-02T13:56:01Z</updated>

		<summary type="html">&lt;p&gt;Published&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Article&lt;br /&gt;
|Standalone=No&lt;br /&gt;
|DisplayName=Messenger namespace&lt;br /&gt;
|Context=Learn about the Messenger namespace methods in the Service Client API.&lt;br /&gt;
|ComingSoon=No&lt;br /&gt;
|Role=Developer&lt;br /&gt;
|Section={{Section&lt;br /&gt;
|sectionHeading=Methods&lt;br /&gt;
|anchor=methods&lt;br /&gt;
|alignment=Vertical&lt;br /&gt;
|structuredtext=The Messenger namespace includes the following methods:&lt;br /&gt;
&lt;br /&gt;
*{{Link-SomewhereInThisManual|topic=MessengerNamespace|anchor=broadcastMessage|display text=broadcastMessage}}&lt;br /&gt;
&lt;br /&gt;
===broadcastMessage===&lt;br /&gt;
{{{!}}&lt;br /&gt;
!Signature&lt;br /&gt;
{{!}}&amp;lt;static&amp;gt; broadcastMessage(''channel'', ''message'', ''succeeded'', ''failed'')&lt;br /&gt;
{{!}}-&lt;br /&gt;
!Description&lt;br /&gt;
{{!}}Send a message to other web applications that use the Service Client API and have subscribed to the specified channel.&lt;br /&gt;
{{!}}-&lt;br /&gt;
!Parameters&lt;br /&gt;
{{!}}&lt;br /&gt;
{{{!}}&lt;br /&gt;
!Name&lt;br /&gt;
!Type&lt;br /&gt;
!Description&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}}channel&lt;br /&gt;
{{!}}string&lt;br /&gt;
{{!}}The channel to send the message on.&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}}message&lt;br /&gt;
{{!}}object&lt;br /&gt;
{{!}}The message (any JSON object) to broadcast on the channel.&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}}succeeded&lt;br /&gt;
{{!}}string&lt;br /&gt;
{{!}}The callback function to use if the operation succeeded.&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}}failed&lt;br /&gt;
{{!}}string&lt;br /&gt;
{{!}}The callback function to use if the operation failed.&lt;br /&gt;
{{!}}}&lt;br /&gt;
{{!}}}&lt;br /&gt;
&lt;br /&gt;
====Samples====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Add a new message broadcaster:&lt;br /&gt;
genesys.wwe.service.messenger.broadcastMessage(&amp;quot;my-channel&amp;quot;, { foo: &amp;quot;A foo text.&amp;quot;, bar: 1234 }, succeeded, failed)&lt;br /&gt;
// The operation &amp;quot;broadcastMessage&amp;quot; from the service &amp;quot;messenger&amp;quot; takes a channel name and any JSON-compliant object.&lt;br /&gt;
 &lt;br /&gt;
// In order to receive this message, you must &amp;quot;subscribe&amp;quot; to &amp;quot;my-channel&amp;quot;:&lt;br /&gt;
genesys.wwe.service.subscribe([ &amp;quot;messenger:my-channel&amp;quot; ], function(message) { console.log(&amp;quot;message: &amp;quot; + message.data); }, this);&lt;br /&gt;
// It is possible to subscribe to several channels:&lt;br /&gt;
genesys.wwe.service.subscribe([ &amp;quot;messenger:my-channel&amp;quot;, &amp;quot;messenger:my-channel2&amp;quot; ], function(message) {&lt;br /&gt;
  console.log(&amp;quot;message: &amp;quot; + message.data + &amp;quot;, channel: &amp;quot; + message.event);&lt;br /&gt;
}, this);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When a message is broadcast to your channel, you receive an event called &amp;lt;code&amp;gt;messenger:&amp;lt;channel&amp;gt;&amp;lt;/code&amp;gt; with the message in the &amp;lt;code&amp;gt;data&amp;lt;/code&amp;gt; attribute. For example, here's the event for the broadcast in the sample above:&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;event&amp;quot;: &amp;quot;messenger:my-channel&amp;quot;,&lt;br /&gt;
  &amp;quot;data&amp;quot;: {&lt;br /&gt;
    &amp;quot;foo&amp;quot;: &amp;quot;A foo text.&amp;quot;,&lt;br /&gt;
    &amp;quot;bar&amp;quot;: 1234&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;userAgent&amp;quot;: &amp;quot;WWE Server&amp;quot;,&lt;br /&gt;
  &amp;quot;protocolVersion&amp;quot;: 2&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|Status=No&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Jumunn</name></author>
		
	</entry>
</feed>