question

mangarao avatar image
mangarao asked Tyler Liu commented

Detect Websocket connection closure

Hi,

I am trying to use below solution(to detect websocket connection closure ) proposed at https://github.com/ringcentral/ringcentral-websocket-java but I am getting compile error stating that 'com.ringcentral.websocket.MyWebSocketClient' is not public in 'com.ringcentral.websocket'. Cannot be accessed from outside package


I am using ringcentral-websocket-0.2.0.jar . Can you pls suggest me how to fix this issue?


Solution To detect websocket connection closure mentioned at https://github.com/ringcentral/ringcentral-websocket-java

subscription.webSocketClient.closeListener=new CloseListener(){

@Override

public void listen(int code,String reason,boolean remote){

subscription.subscribe();

}

};


webhookssubscription
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Tyler Liu avatar image
Tyler Liu answered Tyler Liu commented

We will release a new version of the SDK to fix this issue.

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image Tyler Liu ♦ commented ·

New version 0.2.1 released.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys