- Added API routes for fetching connected users, keywords, missions, and stations. - Created a new QueryProvider component for managing query states and socket events. - Introduced connection stores for dispatch and pilot, managing socket connections and states. - Updated Prisma schema for connected aircraft model. - Enhanced UI with toast notifications for status updates and chat interactions. - Implemented query functions for fetching connected users and keywords with error handling.
7 lines
192 B
TypeScript
7 lines
192 B
TypeScript
import { io } from "socket.io-client";
|
|
import { dispatchSocket } from "dispatch/socket";
|
|
|
|
export const pilotSocket = io(process.env.NEXT_PUBLIC_DISPATCH_SERVER_URL, {
|
|
autoConnect: false,
|
|
});
|