MCPcopy Create free account

hub / github.com/centrifugal/grand-chat-tutorial / functions

Functions81 in github.com/centrifugal/grand-chat-tutorial

↓ 8 callersMethodpost
(self, request, room_id)
backend/chat/views.py:213
↓ 6 callersMethodcreate
(self, request, *args, **kwargs)
backend/chat/views.py:182
↓ 5 callersFunctionfetchRoom
(roomId: string)
frontend/src/App.tsx:406
↓ 4 callersFunctioncreate_room
(name)
backend/app/utils.py:40
↓ 4 callersFunctionfill_room
(room_id, limit)
backend/app/utils.py:44
↓ 4 callersFunctionhandleApiError
(err: unknown)
frontend/src/App.tsx:374
↓ 4 callersFunctionsetLoadingFlag
(roomId: number, value: boolean)
frontend/src/ChatSearch.tsx:17
↓ 3 callersMethodbroadcast_room
(self, room, broadcast_payload)
backend/chat/views.py:67
↓ 3 callersFunctiongetCSRFToken
()
frontend/src/AppApi.tsx:9
↓ 3 callersMethodget_room_member_channels
(self, room_id)
backend/chat/views.py:63
↓ 3 callersMethodincrement_version
(self)
backend/chat/models.py:15
↓ 3 callersFunctiononLoggedOut
()
frontend/src/App.tsx:430
↓ 2 callersFunctioncentrifugo_api_request
Send a command to the Centrifugo HTTP API and return the response.
backend/app/views.py:16
↓ 2 callersFunctionfetchMessages
(roomId: string)
frontend/src/App.tsx:396
↓ 2 callersFunctioninit
()
frontend/src/ChatRoomDetail.tsx:29
↓ 2 callersFunctionlogin
(csrfToken: string, username: string, password: string)
frontend/src/AppApi.tsx:18
↓ 2 callersFunctionlogout
(csrfToken: string, deviceId: string)
frontend/src/AppApi.tsx:27
↓ 2 callersFunctionsortRoomIds
(roomIds: number[], roomsById: Record<number, Room | null>)
frontend/src/App.tsx:153
↓ 2 callersMethodupdate_user_room_topic
(self, user_id, room_id, op)
backend/chat/views.py:158
↓ 1 callersFunctionaddMessage
(csrfToken: string, roomId: string, content: string)
frontend/src/AppApi.tsx:69
↓ 1 callersFunctioncreate_users
(n)
backend/app/utils.py:17
↓ 1 callersFunctionfetchCSRF
()
frontend/src/App.tsx:364
↓ 1 callersFunctionfetchRooms
()
frontend/src/App.tsx:414
↓ 1 callersFunctionfetchRooms
()
frontend/src/ChatSearch.tsx:50
↓ 1 callersFunctiongetMessages
(roomId: string)
frontend/src/AppApi.tsx:64
↓ 1 callersFunctiongetRoom
(roomId: string)
frontend/src/AppApi.tsx:59
↓ 1 callersFunctiongetRooms
()
frontend/src/AppApi.tsx:49
↓ 1 callersFunctiongetSubscriptionToken
(channel: string)
frontend/src/AppApi.tsx:42
↓ 1 callersFunctiongetTime
(timeString: string)
frontend/src/ChatRoomDetail.tsx:82
↓ 1 callersMethodget_queryset
(self, request)
backend/chat/admin.py:31
↓ 1 callersFunctionhandleLogin
()
frontend/src/ChatLogin.tsx:19
↓ 1 callersFunctioninitializeFirebase
(firebaseConfig: FirebaseOptions)
frontend/src/PushNotification.tsx:8
↓ 1 callersFunctionjoinRoom
(csrfToken: string, roomId: string)
frontend/src/AppApi.tsx:80
↓ 1 callersFunctionleaveRoom
(csrfToken: string, roomId: string)
frontend/src/AppApi.tsx:89
↓ 1 callersFunctionmain
Run administrative tasks.
backend/manage.py:7
↓ 1 callersFunctiononForegroundNotification
(callback: (payload: MessagePayload) => void)
frontend/src/PushNotification.tsx:58
↓ 1 callersFunctiononJoin
(roomId: number)
frontend/src/ChatSearch.tsx:24
↓ 1 callersFunctiononLeave
(roomId: number)
frontend/src/ChatSearch.tsx:38
↓ 1 callersFunctiononLogout
()
frontend/src/App.tsx:440
↓ 1 callersFunctiononPublication
(event: RealTimeEvent)
frontend/src/App.tsx:305
↓ 1 callersFunctionprocessMessageAdded
(body: Message)
frontend/src/App.tsx:239
↓ 1 callersFunctionprocessUserJoined
(body: RoomMembership)
frontend/src/App.tsx:258
↓ 1 callersFunctionprocessUserLeft
(body: RoomMembership)
frontend/src/App.tsx:276
↓ 1 callersFunctionpublishMessage
(roomId: string, content: string)
frontend/src/App.tsx:388
↓ 1 callersFunctionregisterDevice
(csrfToken: string, deviceInfo: DeviceInfo)
frontend/src/AppApi.tsx:98
↓ 1 callersFunctionremoveNotificationToken
()
frontend/src/PushNotification.tsx:64
↓ 1 callersFunctionrequestNotificationToken
(vapidKey: string)
frontend/src/PushNotification.tsx:19
↓ 1 callersFunctionscrollToBottom
()
frontend/src/ChatRoomDetail.tsx:75
↓ 1 callersFunctionsearchRooms
()
frontend/src/AppApi.tsx:54
↓ 1 callersFunctionsetupNotifications
()
frontend/src/App.tsx:204
FunctionApp
()
frontend/src/App.tsx:162
FunctionChatLayout
({ children, connected, unrecoverableError, onLogout, twoColumn, onToggleColumns })
frontend/src/ChatLayout.tsx:15
FunctionChatLogin
({ onSuccess })
frontend/src/ChatLogin.tsx:12
FunctionChatRoomDetail
({ fetchRoom, fetchMessages, publishMessage })
frontend/src/ChatRoomDetail.tsx:14
FunctionChatRoomList
()
frontend/src/ChatRoomList.tsx:5
FunctionChatSearch
({ fetchRoom })
frontend/src/ChatSearch.tsx:11
Method__str__
(self)
backend/chat/models.py:20
Method__str__
(self)
backend/chat/models.py:32
Method__str__
(self)
backend/chat/models.py:45
Methodbroadcast
()
backend/chat/views.py:74
Functiondevice_register_view
(request)
backend/app/views.py:114
FunctiongetConnectionToken
()
frontend/src/AppApi.tsx:37
Functionget_connection_token
(request)
backend/app/views.py:32
Functionget_csrf
(request)
backend/app/views.py:28
Methodget_queryset
(self, request)
backend/chat/admin.py:19
Methodget_queryset
(self)
backend/chat/views.py:28
Methodget_queryset
(self)
backend/chat/views.py:40
Methodget_queryset
(self)
backend/chat/views.py:50
Methodget_queryset
(self)
backend/chat/views.py:175
Functionget_subscription_token
(request)
backend/app/views.py:45
FunctionhandleScroll
(e: UIEvent<HTMLDivElement>)
frontend/src/ChatRoomDetail.tsx:113
Functionlogin_view
(request)
backend/app/views.py:64
Functionlogout_view
(request)
backend/app/views.py:91
FunctiononFormSubmit
(e: React.FormEvent<HTMLFormElement>)
frontend/src/ChatRoomDetail.tsx:90
FunctiononLoginSuccess
(userInfo: AuthInfo)
frontend/src/App.tsx:422
Methodpost
(self, request, room_id)
backend/chat/views.py:240
Functionreducer
(state: ChatState, action: ChatAction)
frontend/src/App.tsx:28
Functionsetup_dev
()
backend/app/utils.py:87
Functionsetup_quickstart
Create a tiny demo dataset so you can start chatting immediately. It creates two users you can actually log in as – alice and bob, both with
backend/app/utils.py:64
Methodshort_content
(self, obj)
backend/chat/admin.py:34
FunctiontoggleColumns
()
frontend/src/App.tsx:177