mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 05:15:54 +00:00
Add settings support. Make FFZ menu modular. Add support for chat row styles. Add support for dark twitch (disabled). Add support for SRL races. Update SRL race dialog. Everything.
This commit is contained in:
parent
c9bd39de8a
commit
b284bd0f8d
15 changed files with 2313 additions and 190 deletions
|
@ -4,6 +4,7 @@ FFZ.prototype._ws_open = false;
|
|||
FFZ.prototype._ws_delay = 0;
|
||||
|
||||
FFZ.ws_commands = {};
|
||||
FFZ.ws_on_close = [];
|
||||
|
||||
|
||||
// ----------------
|
||||
|
@ -53,6 +54,15 @@ FFZ.prototype.ws_create = function() {
|
|||
f.log("Socket closed.");
|
||||
f._ws_open = false;
|
||||
|
||||
// When the connection closes, run our callbacks.
|
||||
for(var i=0; i < FFZ.ws_on_close.length; i++) {
|
||||
try {
|
||||
FFZ.ws_on_close[i].bind(f)();
|
||||
} catch(err) {
|
||||
f.log("Error on Socket Close Callback: " + err);
|
||||
}
|
||||
}
|
||||
|
||||
// We never ever want to not have a socket.
|
||||
if ( f._ws_delay < 30000 )
|
||||
f._ws_delay += 5000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue