throttle ready send
This commit is contained in:
parent
87ea0eb81f
commit
cfd2caa4d3
@ -62,6 +62,7 @@ function Welcome() {
|
||||
<p>
|
||||
Free to play, no pay to win. Register to start playing.<br />
|
||||
</p>
|
||||
<a href='https://www.youtube.com/watch?v=IyPaDX69i2g'>Tutorial Playthrough on YouTube</a>
|
||||
</div>
|
||||
{pageEl()}
|
||||
</section>
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
const toast = require('izitoast');
|
||||
const cbor = require('borc');
|
||||
|
||||
const throttle = require('lodash/throttle');
|
||||
|
||||
const SOCKET_URL =
|
||||
`${window.location.protocol === 'https:' ? 'wss://' : 'ws://'}${window.location.host}/api/ws`;
|
||||
|
||||
@ -363,7 +365,8 @@ function createSocket(events) {
|
||||
sendGameTarget,
|
||||
|
||||
sendInstanceAbandon,
|
||||
sendInstanceReady,
|
||||
// some weird shit happening in face off
|
||||
sendInstanceReady: throttle(sendInstanceReady, 500),
|
||||
sendInstancePractice,
|
||||
sendInstanceQueue,
|
||||
sendInstanceState,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user