Skip to content
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
2 changes: 1 addition & 1 deletion sdk/src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ connection.prototype.listen = function (options) {
};

//webrtc需要强制心跳,加个默认为false的参数 向下兼容
connection.prototype.heartBeat = function (forcing = false) {
connection.prototype.heartBeat = function (forcing) {
var me = this;
//IE8: strophe auto switch from ws to BOSH, need heartbeat
var isNeed = !/^ws|wss/.test(me.url) || /mobile/.test(navigator.userAgent);
Expand Down