code: private boolean isWebRTC(String transport, String userAgent) {
          return "ws".equalsIgnoreCase(transport) || "wss".equalsIgnoreCase(transport) || userAgent.toLowerCase().contains("restcomm");
      }
docs: Checks whether the client is WebRTC or not.
  
  <p>
  A client is considered WebRTC if one of the following statements is true:<br>
  1. The chosen transport is WebSockets (transport=ws).<br>
  2. The chosen transport is WebSockets Secured (transport=wss).<br>
  3. The User-Agent corresponds to one of TeleStax mobile clients.
  </p>
  
  @param transport
  @param userAgent
  @return