Class: eu

easyrtc_util~eu

new eu()

Object to hold EasyRTC Utility methods and classes.
Source:

Methods

(static) ApplicationError(msg) → {Error}

Custom Error Object for EasyRTC Application Errors.
Parameters:
Name Type Description
msg string Text message describing the error.
Source:
Returns:
Type
Error

(static) ApplicationWarning(msg) → {Error}

Custom Error Object for EasyRTC Application Warnings.
Parameters:
Name Type Description
msg string Text message describing the error.
Source:
Returns:
Type
Error

(static) ConnectionError(msg) → {Error}

Custom Error Object for Connection Errors.
Parameters:
Name Type Description
msg string Text message describing the error.
Source:
Returns:
Type
Error

(static) ConnectionWarning(msg) → {Error}

Custom Error Object for Connection Warnings.
Parameters:
Name Type Description
msg string Text message describing the error.
Source:
Returns:
Type
Error

(static) getAvailableEasyrtcid() → {String}

Returns a random available easyrtcid.
Source:
Returns:
Available easyrtcid. A unique identifier for an EasyRTC connection.
Type
String

(static) isError(err) → {Boolean}

Determines if an Error object is an instance of ApplicationError, ConnectionError, or ServerError. If it is, it will return true.
Parameters:
Name Type Description
err Error
Source:
Returns:
Type
Boolean

(static) isWarning(err) → {Boolean}

Determines if an Error object is an instance of ApplicationWarning, ConnectionWarning, or ServerWarning. If it is, it will return true.
Parameters:
Name Type Description
err Error
Source:
Returns:
Type
Boolean

(static) ServerError(msg) → {Error}

Custom Error Object for EasyRTC Server Errors.
Parameters:
Name Type Description
msg string Text message describing the error.
Source:
Returns:
Type
Error

(static) ServerWarning(msg) → {Error}

Custom Error Object for EasyRTC Server Warnings.
Parameters:
Name Type Description
msg string Text message describing the error.
Source:
Returns:
Type
Error

(static) socketDisconnect(socket)

Disconnects socket. Failure results in a debug level log message.
Parameters:
Name Type Description
socket Object Socket.io connection object.
Source: