3

I have installed latest stable version of Kurento Media Server(KMS) on local machine with specification Ubuntu 16.04 Xenial following this documentation. I have verified everything and it is working fine and getting same traces as mentioned in this documentation. But when I tried to connect KMS via websocket

ws://localhost:8888/kurento

I'm getting connection time out issue. This is not particular to port 8888 only, any port assigned to KMS, leads to connection timeout.

Getting request timeout issue although every other application on same machine is telneted and getting response expectedly but it is not true when I run below command.

sudo telnet 127.0.0.1:8888

I also tried to reach out websocket connection via Smart WEB Socket but getting connection time out issue.

1 Answers1

0

Are you testing with the KMS tutorials or your own application?

If its your own application the websocket connection timeout issue maybe unrelated to Kurento Media Server(KMS). A websocket connection timeout issue is a abnormal closure which tends to occur when a websocket is detected to be idle.

To maintain the websocket connection it is usually suggested to implement a heartbeat. Below are a couple of posts which discuss the matter a bit more:

Must websockets have heartbeats?

Sending websocket ping/pong frame from browser

Noe Vega
  • 41
  • 3