mirror of
https://github.com/sstent/node.git
synced 2026-01-27 07:33:13 +00:00
16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
exports.create = function(model, self) {
|
|
|
|
exports.connect = function() {
|
|
// Hide the reconnect link for a second after clicking it
|
|
self.set('hideReconnect', true)
|
|
setTimeout(function() {
|
|
self.set('hideReconnect', false)
|
|
}, 1000)
|
|
model.socket.socket.connect()
|
|
}
|
|
|
|
exports.reload = function() {
|
|
window.location.reload()
|
|
}
|
|
}
|