MCPcopy Create free account
hub / github.com/agent-tower/core / AppContent

Function AppContent

packages/web/src/App.tsx:11–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import { AccessGate } from '@/components/access/AccessGate'
10
11function AppContent() {
12 // Establish socket connection once at app startup.
13 // Individual hooks only subscribe/unsubscribe to rooms.
14 useEffect(() => {
15 socketManager.connect()
16 return () => socketManager.disconnect()
17 }, [])
18
19 return (
20 <I18nProvider>
21 <GlobalRealtimeSync />
22 <AppRouter />
23 <Toaster
24 position="top-center"
25 toastOptions={{
26 className: 'text-sm',
27 style: {
28 fontFamily: 'inherit',
29 },
30 classNames: {
31 error: '!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg',
32 success: '!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg',
33 default: '!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg',
34 },
35 }}
36 />
37 </I18nProvider>
38 )
39}
40
41function App() {
42 return (

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
disconnectMethod · 0.45

Tested by

no test coverage detected