objType

line.objType is a string property containing object class description.

As all wrtc, call, socket and line objects have .objType properties you can use it to detect what class object belongs to.

It is more "future-proof" than if (line instanceof lineObject)

Default value

"line"

ixnx/wrtc/js/api/line/objtype.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0