demos/js/demo_data_channel_messaging.js
function connect() {
    easyrtc.enableDebug(false);
    easyrtc.enableDataChannels(true);
    easyrtc.enableVideo(false);
    easyrtc.enableAudio(false);
    easyrtc.enableVideoReceive(false);
    easyrtc.enableAudioReceive(false);
    easyrtc.setDataChannelOpenListener(openListener);
    easyrtc.setDataChannelCloseListener(closeListener);
    easyrtc.setPeerListener(addToConversation);
    easyrtc.setRoomOccupantListener(convertListToButtons);
    easyrtc.connect("easyrtc.dataMessaging", loginSuccess, loginFailure);
}
function connect() {
    easyrtc.enableDebug(false);
    easyrtc.enableDataChannels(true);
    easyrtc.enableVideo(false);
    easyrtc.enableAudio(false);
    easyrtc.enableVideoReceive(false);
    easyrtc.enableAudioReceive(false);
    easyrtc.setDataChannelOpenListener(openListener);
    easyrtc.setDataChannelCloseListener(closeListener);
    easyrtc.setPeerListener(addToConversation);
    easyrtc.setRoomOccupantListener(convertListToButtons);
    easyrtc.connect("easyrtc.dataMessaging", loginSuccess, loginFailure);
}
function connect ( ) { easyrtc . enableDebug ( false ) ; easyrtc . enableDataChannels ( true ) ; easyrtc . enableVideo ( false ) ; easyrtc . enableAudio ( false ) ; easyrtc . enableVideoReceive ( false ) ; easyrtc . enableAudioReceive ( false ) ; easyrtc . setDataChannelOpenListener ( openListener ) ; easyrtc . setDataChannelCloseListener ( closeListener ) ; easyrtc . setPeerListener ( addToConversation ) ; easyrtc . setRoomOccupantListener ( convertListToButtons ) ; easyrtc . connect ( "easyrtc.dataMessaging" , loginSuccess , loginFailure ) ; }
tracks which channels are active
tracks which channels are active