We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c87c9 commit 2e3ee85Copy full SHA for 2e3ee85
src/push-uniapp.js
@@ -189,17 +189,15 @@ function createPresenceChannel(channel_name, push)
189
return createPrivateChannel(channel_name, push);
190
}
191
192
-/*window.addEventListener('online', function(){
193
- var con;
+uni.onNetworkStatusChange(function (res) {
194
for (var i in Push.instances) {
195
con = Push.instances[i].connection;
196
con.reconnectInterval = 1;
197
if (con.state === 'connecting') {
198
con.connect();
199
200
201
-});*/
202
-
+});
203
204
function Connection(options) {
205
this.dispatcher = new Dispatcher();
@@ -821,4 +819,4 @@ function formatParams(data){
821
819
return arr.join('&');
822
820
823
824
-export default Push
+export default Push
0 commit comments