@@ -5,6 +5,11 @@ title: WebMessagingClient
55
66| Method | Description |
77| ------------- | ------------- |
8+ | [ ** hasPresenceEvents** ] ( WebMessagingClient.html#hasPresenceEvents1 ) | Inspect a StructuredMessage, looking for Presence events ({@link EventType#PRESENCE} )
9+ |
10+ | [ ** hasTypingEvents** ] ( WebMessagingClient.html#hasTypingEvents1 ) | Inspect a StructuredMessage, looking for Typing events ({@link EventType#TYPING} )
11+ |
12+ | [ ** hasEvents** ] ( WebMessagingClient.html#hasEvents1 ) | Inspect a StructuredMessage, looking for a type of event ({@link EventType} ) |
813| [ ** WebMessagingClient** ] ( WebMessagingClient.html#WebMessagingClient1 ) | Creates a new Web Messaging client |
914| [ ** WebMessagingClient** ] ( WebMessagingClient.html#WebMessagingClient2 ) | Creates a new Web Messaging client |
1015| [ ** joinConversation** ] ( WebMessagingClient.html#joinConversation1 ) | Full service operation to connect the WebSocket and configure the session |
@@ -51,13 +56,79 @@ title: WebMessagingClient
5156
5257<h1 >Constructors</h1 >
5358
59+ <a name =" hasPresenceEvents1 " ></a >
60+
61+ # ** hasPresenceEvents**
62+
63+
64+
65+ > hasPresenceEvents(message)
66+
67+ Inspect a StructuredMessage, looking for Presence events ({@link EventType#PRESENCE} )
68+
69+
70+ ### Parameters
71+
72+
73+ | Name | Type | Description | Notes |
74+ | ------------- | ------------- | ------------- | ------------- |
75+ | ** message** | ** StructuredMessage** | message to introspect for Presence events |
76+ {: class="table-striped"}
77+
78+ <a name =" hasTypingEvents1 " ></a >
79+
80+ # ** hasTypingEvents**
81+
82+
83+
84+ > hasTypingEvents(message)
85+
86+ Inspect a StructuredMessage, looking for Typing events ({@link EventType#TYPING} )
87+
88+
89+ ### Parameters
90+
91+
92+ | Name | Type | Description | Notes |
93+ | ------------- | ------------- | ------------- | ------------- |
94+ | ** message** | ** StructuredMessage** | message to introspect for Typing events |
95+ {: class="table-striped"}
96+
97+
98+
99+ <h1 >Methods</h1 >
100+
101+ <a name =" hasEvents1 " ></a >
102+
103+ # ** hasEvents**
104+
105+
106+
107+ > static hasEvents(message, type)
108+
109+ Inspect a StructuredMessage, looking for a type of event ({@link EventType} )
110+
111+ ### Parameters
112+
113+
114+ | Name | Type | Description | Notes |
115+ | ------------- | ------------- | ------------- | ------------- |
116+ | ** message** | ** EventType** | message to introspect for events |
117+ | ** type** | ** StructuredMessage** | type of event to look for |
118+ {: class="table-striped"}
119+
120+
121+ ### Return type
122+
123+ ** static**
124+
54125<a name =" WebMessagingClient1 " ></a >
55126
56127# ** WebMessagingClient**
57128
58129
59130
60- > WebMessagingClient(address)
131+ > WebMessagingClient(address)
61132
62133Creates a new Web Messaging client
63134
@@ -75,7 +146,7 @@ Creates a new Web Messaging client
75146
76147
77148
78- > WebMessagingClient(region)
149+ > WebMessagingClient(region)
79150
80151Creates a new Web Messaging client
81152
@@ -87,10 +158,6 @@ Creates a new Web Messaging client
87158| ** region** | ** GenesysCloudRegionWebSocketHosts** | The WebSocket server's Genesys Cloud region |
88159{: class="table-striped"}
89160
90-
91-
92- <h1 >Methods</h1 >
93-
94161<a name =" joinConversation1 " ></a >
95162
96163# ** joinConversation**
@@ -221,7 +288,7 @@ Configures a new session with a randomly generated session token
221288
222289
223290
224- > void configureSession(deploymentId, token, origin)
291+ > void configureSession(deploymentId, token, origin, startNew )
225292
226293Configures a session using the provided session token. This can be used to reconnect to active sessions.
227294
@@ -230,9 +297,10 @@ Configures a session using the provided session token. This can be used to recon
230297
231298| Name | Type | Description | Notes |
232299| ------------- | ------------- | ------------- | ------------- |
233- | ** deploymentId** | ** String ** | The ID of the Web Messaging deployment |
300+ | ** deploymentId** | ** Optional< Boolean > ** | The ID of the Web Messaging deployment |
234301| ** token** | ** String** | The session token |
235- | ** origin** | ** String** | Represents the origin of the request. You can restrict access in Messenger Deployments |
302+ | ** origin** | ** String** | Represents the origin of the request. You can restrict access in Messenger Deployments |
303+ | ** startNew** | ** String** | true if you want to start a new session for your currently read-only session (after a Presence event of type |
236304{: class="table-striped"}
237305
238306
0 commit comments