Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unwanted spaces #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ JingleSession.prototype = extend(JingleSession.prototype, {
message = this.sid + ': ' + message;
this.emit('log:' + level, message);
},

send: function (action, data) {
data = data || {};
data.sid = this.sid;
Expand Down Expand Up @@ -205,33 +205,33 @@ JingleSession.prototype = extend(JingleSession.prototype, {
jingle: data
});
},

process: function (action, changes, cb) {
this.processingQueue.push({
action: action,
changes: changes,
cb: cb
});
},

start: function () {
this._log('error', 'Can not start base sessions');
this.end('unsupported-applications', true);
},

accept: function () {
this._log('error', 'Can not accept base sessions');
this.end('unsupported-applications');
},

cancel: function () {
this.end('cancel');
},

decline: function () {
this.end('decline');
},

end: function (reason, silent) {
this.state = 'ended';

Expand All @@ -246,13 +246,13 @@ JingleSession.prototype = extend(JingleSession.prototype, {
condition: reason
};
}

if (!silent) {
this.send('session-terminate', {
reason: reason
});
}

this.emit('terminated', this, reason);
},

Expand All @@ -261,7 +261,7 @@ JingleSession.prototype = extend(JingleSession.prototype, {
cb();
},

// It is mandatory to reply to a session-info action with
// It is mandatory to reply to a session-info action with
// an unsupported-info error if the info isn't recognized.
//
// However, a session-info action with no associated payload
Expand Down Expand Up @@ -292,7 +292,7 @@ JingleSession.prototype = extend(JingleSession.prototype, {
}
},

// It is mandatory to reply to a description-info action with
// It is mandatory to reply to a description-info action with
// an unsupported-info error if the info isn't recognized.
onDescriptionInfo: function (changes, cb) {
cb({
Expand All @@ -302,7 +302,7 @@ JingleSession.prototype = extend(JingleSession.prototype, {
});
},

// It is mandatory to reply to a transport-info action with
// It is mandatory to reply to a transport-info action with
// an unsupported-info error if the info isn't recognized.
onTransportInfo: function (changes, cb) {
cb({
Expand Down