Commit 04484ceb authored by Chunchi Che's avatar Chunchi Che

add sendHsReady

parent 97f83d70
......@@ -88,7 +88,7 @@ export default function WaitRoom() {
const handleChoseReady = () => {
if (ws.current) {
// todo
sendHsReady(ws.current);
}
};
......@@ -139,3 +139,11 @@ function sendUpdateDeck(ws: WebSocket, deck: IDeck) {
ws.send(updateDeck.serialize());
}
function sendHsReady(ws: WebSocket) {
const hasReady = new ygopro.YgoCtosMsg({
ctos_hs_ready: new ygopro.CtosHsReady({})
});
ws.send(hasReady.serialize());
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment