mirror of https://github.com/PiyushXCoder/lupt.git
minor fix
This commit is contained in:
parent
6017a45e35
commit
4417dd1256
|
|
@ -11,11 +11,11 @@ use crate::{chat_pinnd::ChatPinnd, messages as ms, validator::{Validation as vl,
|
|||
/// How often heartbeat pings are sent
|
||||
const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
|
||||
/// How long before lack of client response causes a timeout
|
||||
const CLIENT_TIMEOUT: Duration = Duration::from_secs(10);
|
||||
const CLIENT_TIMEOUT: Duration = Duration::from_secs(15);
|
||||
|
||||
// for phones if browser kept websocket on
|
||||
const SPECIAL_HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5*60);
|
||||
const SPECIAL_CLIENT_TIMEOUT: Duration = Duration::from_secs(6*60);
|
||||
const SPECIAL_CLIENT_TIMEOUT: Duration = Duration::from_secs(10*60);
|
||||
|
||||
pub struct WsSansad {
|
||||
kunjika: String,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
</div>
|
||||
<div class="siimple-form-field siimple--text-right" style="width: 100%;">
|
||||
<div><span name="error_msg" class="siimple-tag siimple-tag--error siimple--my-2 hidden"></span></div>
|
||||
<div id="grih_connect" class="siimple-btn siimple-btn--success" onclick="connect($(this).parents('form').first())">Connect</div>
|
||||
<div name="connect" class="siimple-btn siimple-btn--success">Connect</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
</div>
|
||||
<div class="siimple-form-field siimple--text-right" style="width: 100%;">
|
||||
<div><span name="error_msg" class="siimple-tag siimple-tag--error siimple--my-2 hidden"></span></div>
|
||||
<div id="str_connect" class="siimple-btn siimple-btn--success" onclick="connect($(this).parents('form').first())">Connect</div>
|
||||
<div name="connect" class="siimple-btn siimple-btn--success">Connect</div>
|
||||
</div>
|
||||
</form>
|
||||
</tabs>
|
||||
|
|
|
|||
|
|
@ -63,6 +63,10 @@ $(document).ready(() => {
|
|||
$('#selected_clip').css('bottom', (this.scrollHeight + 10) + 'px');
|
||||
}
|
||||
});
|
||||
|
||||
$('[name=connect]').click(function () {
|
||||
connect($(this).parents('form').first());
|
||||
});
|
||||
});
|
||||
|
||||
function sendTyping() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue