Skip to main content
Question

Websocket Subscription is not working

  • October 21, 2025
  • 4 replies
  • 112 views

Pulling my hair out.



basiically , i’m writing a websocket listener (using php/laravel) to listen for incoming calls.

i following the sample provided by RingCentral and Not able to get this working. (using theSDK)
 

The code create the socket, then the subscription, however the subscription->subscription() returns

{"eventFilters":[],"expirationTime":"","expiresIn":0,"deliveryMode":{"transportType":"PubNub","encryption":false,"address":"","subscriberKey":"","secretKey":""},"id":"","creationTime":"","status":"","uri":""} 

Shouldn’t the transportType = websocket?

the code ran, but does not invoke whenever we have incoming calls.

P.s I do have websocket and websocket subscription in my app scope. 

using JWT

Client ID: 8wZCaIqPR4S2JP8UPr2RTw


Thank You!

 

4 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • October 22, 2025

You wrote that you followed the sample provided by RingCentral, please share the link to the sample code if it’s not the one below. Otherwise, check the code in the link and try it out
https://developers.ringcentral.com/guide/notifications/websockets/quick-start#php


@PhongVu that’s correct https://developers.ringcentral.com/guide/notifications/websockets/quick-start#php

i am however are able to subscribe to web-hooks.

 

 


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • October 22, 2025

@PhongVu that’s correct https://developers.ringcentral.com/guide/notifications/websockets/quick-start#php

i am however are able to subscribe to web-hooks.

 

 

You wrote “i’m writing a websocket listener ...”, you confirmed the link which shows the WebSocket example code. Now you mentioned “subscribe to web-hooks.” which means WebHook. So which one are you really using? Share some of your own code.


i think you have be  have been confused on my last post.

I’m trying to get websocket working, not webhook.

I added additional details on the second post that i was able to add webhooks so you can have a sense that i’m able to create subscriptions via the api.

 

Thanks anyways, websocket still not working, i went with webhook route.