Skip to main content

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!

 

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 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.