Skip to content

Commit

Permalink
www
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed Nov 6, 2019
1 parent c7bf6ee commit e3ba108
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,11 @@ module.exports = async ({ state, db }) => {

;

(async () => {
(f => w => f(f, w()))(f => w => f(f, w()))(async () => {
while (true) {
await connect()
}
})()

;

(async () => {
})(async () => {
while (true) {
const pause = wait(233)
if (ws.readyState === 1) {
Expand All @@ -147,11 +143,7 @@ module.exports = async ({ state, db }) => {
}
await pause
}
})()

;

(async () => {
})(async () => {
while (true) {
if (ws.readyState === 1) {
const pause = wait(1000 * 5)
Expand All @@ -162,7 +154,7 @@ module.exports = async ({ state, db }) => {
await wait(500)
}
}
})()
})

const getWs = () => ws
const updateInterval = interval => {
Expand Down

0 comments on commit e3ba108

Please sign in to comment.