Gossip Plug Unplugged: The connection was lost due to a long absence of receiving the last PONG message on the socket

Whilst utilizing the Opentok plugin for video chat (client version - 2.2.5.1 , server Node sdk - 2.2.3), an error occurs after publishing to the session:

Rumor.Socket: Rumor Socket Disconnected: Connectivity loss was detected as it was too long since the socket received the last PONG message

In addition, another error is also encountered:

OT.SessionDisconnectEvent{
  type: "sessionDisconnected",
  cancelable: true, 
  preventDefault: function, 
  isDefaultPrevented: function, 
  reason: "networkDisconnected"
}

Although it states

"reason" : "network disconnected"
, a thorough check confirms that there are no issues with the network connection.

The following code snippet has been utilized:

    session = TB.initSession(TOK_API_KEY, session_id);
       session.on("sessionDisconnected", function(event) {  
                    console.log("SESSION DISCONNECTED: "+new Date());
                    console.log(event);
                 });

                session.on('sessionConnected', function(e){
                    console.log("SESSION CONNECTED");
                    var prop = {width: 400, height:300, name:"My Video"};
                    publisher = TB.initPublisher("broadcast_display", prop, function(error) {
                        if (error) {
                            console.log('error initializing publisher', error);
                        } else {
                            console.log('publisher initialized successfully');
                        }
                    });
                });

                session.connect(token, function(error) {
                    if (error) {
                        console.log(error);
                    } else {
                        console.log("Published: "+new Date());
                        session.publish(publisher);
                    }
                });

The session abruptly terminates following this and the publishing ceases. The duration between the start of publishing and disconnection remains consistent at 53 seconds (unsure if this is pertinent).

GruntJS and EmberJS have also been incorporated alongside Opentok.

Any assistance would be greatly appreciated.

Answer №1

There has been a reported issue with OpenTok when integrated with EmberJS. The development team identified and resolved the bug, which is set to be included in the upcoming Javascript update scheduled for release later this week or possibly early next week.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The API designed to accept JSON data via a POST request is receiving a different data type than expected

I have a task to develop an API that receives JSON data in NODE.JS via the POST method. To simplify request management, I utilize Express and BodyParser library to handle the body of POST requests. The data is structured in a JavaScript object like this: ...

JavaScript function failing to utilize innerHTML output

Having trouble with my BMI calculator code. Even after adding sample text for testing in JavaScript, the function still isn't working. Can someone help me figure out what's wrong? <h2>Welcome to BMI calculator</h2> <h4>Please ...

What is the best way to create a CSS class for a list element in React?

I am facing an issue with styling buttons in my UI. These buttons represent different domains and are dynamically generated based on data fetched from the server using the componentDidMount() method. Since I do not know the quantity of buttons at the time ...

Navigating back to the original page after venturing to a different one - react

In the header of each page, there is a 'Back' button that allows users to navigate back to the previous page. The function handleGoBack() is responsible for this: import React from 'react'; import { Button, Typography } from "@mate ...

Gathering information in a non-blocking manner with $.ajax() in rails version 3.2.2

Currently, I am delving into the realm of asynchronous data retrieval in my Rails 3.2.2 project. As a newcomer to both JavaScript and jQuery, I've stumbled upon an issue where JavaScript is unable to fetch data from a different domain server. To overc ...

What is the procedure for retrieving values from a table?

<tbody> <tr> <td><span style="">Price</span></td> <td><span style="">:</span></td> <td><span style="">660</span></td> </tr> <tr> <td><s ...

MUI Tutorial: Displaying Text with Line Breaks

Whenever I input text into the MUI Textfield, it displays without any line breaks. Is there a more effective solution available? <Stack direction="row" alignItems="start" justifyContent="start" mb={5}> <TextFie ...

Steps for updating a text section beneath a carousel

I'm looking to enhance my webpage with a bootstrap carousel, which is pretty standard. However, I want the content under each slide to change dynamically, but I'm struggling to make it work. As a newbie, I could use some guidance. I've atte ...

Is it possible in Typescript to assign a type to a variable using a constant declaration?

My desired outcome (This does not conform to TS rules) : const type1 = "number"; let myVariable1 : typeof<type1> = 12; let type2 = "string" as const; let myVariable2 : typeof<type2> = "foo"; Is it possible to impl ...

How can I change the default selected option for a radio button in a React application?

I am having trouble setting the default checked radio button to lime in my radio button group. Even though I have set lime as the default value, it doesn't seem to work. Here is the code snippet that I am working with and I am looking for a solution ...

JavaScript Slideshow Transition Techniques

I'm struggling to create a slideshow gallery using Javascript. However, I'm facing an issue where the code instantly jumps from ferrari.jpg to veyron.jpg, completely skipping over lamborghini.jpg. <!DOCTYPE html> <html> <head> ...

Is it possible to swap out images using srcset attribute?

Currently, I am facing an issue regarding changing the img on mobile and tablet devices to display different images. As a beginner with jQuery, I couldn't resolve it using that framework, so I am exploring options with html5. I am wondering if there ...

An error known as "cart-confirmation" has been encountered within the Snipcart platform

I am looking to integrate Snipcart checkout in my Next.js application. However, when I try to validate a payment, I encounter an error message: An error occurred in Snipcart: 'product-crawling-failed' --- Item 1 --- [Item ID] 8 [Item Unique ID] ...

Fetching information with request query parameters in Node.js

Working on implementing email verification using nodemailer for user sign-ups. The process involves sending out an email containing a link (usually something like localhost:3000/verify/?id=##). After the user clicks the link, I can see that a GET request ...

Tips for displaying a loading spinner each time the material table is loading

Hey there, I'm currently working on an Angular project where I need to display a table using Material Table. To indicate that the table is loading, I've defined a variable called isLoading. Here's how it works: In my TypeScript file: @Com ...

Activate code coverage for Jest tests within jest-html-reporter/Istanbul

Utilizing the jest-html-reporter package has proven useful in generating an HTML report for my tests. However, while this report displays information on test results (passing and failing), it lacks details regarding code coverage statistics such as lines c ...

Leveraging the useContext and useReducer hooks within NextJS, while encountering the scenario of reading null

Trying to develop a tic-tac-toe game in NextJS and setting up a board context for my components to access. However, after integrating a reducer into the Wrapper to handle a more complex state, I'm encountering a null error. Errors: TypeError: Cannot r ...

Experimenting with two iterations of the json-schema to ensure compatibility across different versions

I manage a repository that stores versioned json-schemas, meaning I may have multiple revisions for each type of schema (v1, v2, v3, etc). My goal is to test these schemas for backwards compatibility, ensuring that any data valid for a v1 schema will also ...

By checking the active box and completing the fields, the button will be activated

I'm currently working on a form that requires all fields to be filled out and the acceptance checkbox to be checked before the Submit button becomes active. If any entry or the checkbox is subsequently removed, the button should become inactive again. ...

What is the best way to store query responses in global.arrays without overwriting the existing values stored within the array elements of global.arrays?

QUESTION: I am struggling to efficiently assign results of MongoDB queries to global arrays. I attempted to store references to the global arrays in an array so that I could easily assign query results to all of them using a for loop. However, this appro ...