Legacy Dev Forum Posts

 View Only

Sign Up

Subscribing to Station Topic

  • 1.  Subscribing to Station Topic

    Posted 06-05-2025 19:22

    marisa.grasso | 2022-06-08 10:45:17 UTC | #1

    Hi,

    I am trying to find information on how to subscribe to the Station Topic, what is know as v2.users.{id}.station in the notification tester:

    The reson I need this is so that I can receive the corresponding event when a User stops having an associated Station. I've realised that sometimes upon loging in on to Genesys or when the conection to Genesys temporarily fails, the associated Station is dropped and the "calls" icon in the Genesys main page is shown as:

    For this reason I need to be able to detect whenever the user has no station associated so that in the integration I'm developing any future events are ignored as the user is not able to handle any inbound or outbound calls until a station is set up. I can check this manually using v2.users.{id}.station, but I need to be able to subscribe to this topic so that I can detect changes in station in real time. Where can I find information to do this?

    Thank you.


    John_Carnell | 2022-06-08 12:54:23 UTC | #2

    Hi Mario,

    Take a look at this video. This walks through how to use Python and the Notification Service to subscribe to topics. I would also recommend you take a look at your use case. If you are doing a front-end integration you can use the WebSockets notification service integration. However, if you are doing some kind of back-end integration and you have an AWS account, I recommend you use our AWS Event Bridge integration. It allows you to subscribe to Genesys Cloud Events, but the events get published to EventBridge where they can be picked up by Kinesis, a Lambda, etc....

    Here is a good blog post that goes into more detail on how to leverage an event-based integration within Genesys.

    I hope that helps.

    Thanks, John Carnell Manager, Developer Engagement


    marisa.grasso | 2022-06-08 13:10:52 UTC | #3

    Hi

    Thank you John. I forgot to mention, I am already useing Websockets to subscribe to User presence and conversations in my program, which is Frontend based. I am using Javascript, do you know where I can find similar information on Javascript solution (instead of Python) in order to establish a websocket for the Station topic?

    Thank you!


    John_Carnell | 2022-06-08 14:20:52 UTC | #4

    Hi Marisa,

    Here is a blueprint this is implementing a notification subscription using javascript. All the code is under the docs folder. Here is the specific file I believe is doing the implementation.

    Thanks, John Carnell Manager, Developer Engagement


    system | 2022-07-09 14:21:45 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 15051