Team XSockets.NET

How to handle errors

Connection Level

To catch errors on connection level you use onerror from the connection object

conn.onerror = function(err){
    console.log(err);
}

Controller Level

To catch error on controller level you use onerror from a controller

conn.controller("chat").onerror = function(err){
    console.log(err);
};

results matching ""

    No results matching ""