feat(ui): FRO-34 Lobby (#21)
Started with Lobby Component Co-authored-by: LQ63 <lkhermann@web.de> Co-authored-by: Janis <janis-e@gmx.de> Reviewed-on: #21 Reviewed-by: Janis <janis-e@gmx.de> Co-authored-by: lq64 <lq@blackhole.local> Co-committed-by: lq64 <lq@blackhole.local>
This commit is contained in:
@@ -37,10 +37,12 @@ export function useWebSocket() {
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
console.log("Registering event handler for " + event);
|
||||
onEvent(event, wrapped);
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
console.log("Unregistering event handler for " + event);
|
||||
onEvent(event, () => {});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user