ต่อ socket กับ server

This commit is contained in:
Kittapath 2024-02-16 16:21:19 +07:00 committed by Net
parent efe7ab6b78
commit 8de2743eb1
4 changed files with 221 additions and 49 deletions

View file

@ -47,6 +47,7 @@ export const useSupportStore = defineStore("supportServiceStore", () => {
const socket = io(config.API.supportSocket, {
auth: { token: keycloak.token },
autoConnect: false,
path: "/api/v1/support/socket/",
});
socket.on("users", (data: SupportStatusUser[]) => {