Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Refer to the Threadpool Configuration section under the Common Configurations page.

 

Functional Demonstration

Scenario 1 - Multiple clients connecting to the same server

Prerequisites: Start Non- SSL Server

The following sample flow has two websocket microservices, both act as clients connected to the same server using the URL "ws://localhost:8887". Upon successful connection, the message mentioned in the CPS will be sent to the server. After receiving requests from the client, the server will broadcast the message to all the connected clients which will be sent to the respective output ports as shown in the display window.

Image Added
Figure 7: Event Process for multiple clients connecting to the same server

Image Added
Figure 8: Connection open message for Client One in the CPS

Image Added
Figure 9: Connection open message for Client two in the CPS

Image Added
Figure 10: Sending message from Feeder1

Image Added
Figure 11: Sending message from Feeder2

Image Added
Figure 12: Acknowledgement message from Client1 displayed in Display1

Image Added
Figure 13: Messages from Client1 displayed in Display2

Image Added
Figure 14: Acknowledgement message from Client2 displayed in Display3

Image Added
Figure 15: Messages from Client2 displayed in Display4

Scenario 2 - Enabling Ping mechanism

In this scenario, when Ping Mechanism is enabled, if the ping is not received between the client and the server until the time mentioned in the 'Ping Expire Timeout' property, the message sent by the client will get discarded after the timeout.

Image Added
Figure 16: Enabling Ping Mechanism in the CPS

Enable Error port in the event process by clicking the Image Added button in the eStudio and connect a Display microservice to the Error port display the error message. Error message can be found in the logs too.

Image Added
Figure 17: Event Process demonstrating Ping Mechanism

Image Added
Figure 18: Message in the Display window

Image Added
Figure 19: Error message highlighted in the Display window after scrolling to the right

Adaptavist ThemeBuilder EngineAtlassian Confluence