feat: action ack
This commit is contained in:
parent
a58e1b6b89
commit
841db3de13
3
app/net/packets/action-ack.js
Normal file
3
app/net/packets/action-ack.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Packet from '@/net/packet.js';
|
||||
|
||||
export default class ActionAck extends Packet {}
|
|
@ -249,6 +249,17 @@ export default class Engine {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (payload.ack) {
|
||||
this.server.send(
|
||||
connection,
|
||||
{
|
||||
type: 'ActionAck',
|
||||
payload: {
|
||||
ack: payload.ack,
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
this.incomingActions.set(connection, []);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user