Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/centrifugal/grand-chat-tutorial
/ functions
Functions
81 in github.com/centrifugal/grand-chat-tutorial
⨍
Functions
81
◇
Types & classes
47
↓ 8 callers
Method
post
(self, request, room_id)
backend/chat/views.py:213
↓ 6 callers
Method
create
(self, request, *args, **kwargs)
backend/chat/views.py:182
↓ 5 callers
Function
fetchRoom
(roomId: string)
frontend/src/App.tsx:406
↓ 4 callers
Function
create_room
(name)
backend/app/utils.py:40
↓ 4 callers
Function
fill_room
(room_id, limit)
backend/app/utils.py:44
↓ 4 callers
Function
handleApiError
(err: unknown)
frontend/src/App.tsx:374
↓ 4 callers
Function
setLoadingFlag
(roomId: number, value: boolean)
frontend/src/ChatSearch.tsx:17
↓ 3 callers
Method
broadcast_room
(self, room, broadcast_payload)
backend/chat/views.py:67
↓ 3 callers
Function
getCSRFToken
()
frontend/src/AppApi.tsx:9
↓ 3 callers
Method
get_room_member_channels
(self, room_id)
backend/chat/views.py:63
↓ 3 callers
Method
increment_version
(self)
backend/chat/models.py:15
↓ 3 callers
Function
onLoggedOut
()
frontend/src/App.tsx:430
↓ 2 callers
Function
centrifugo_api_request
Send a command to the Centrifugo HTTP API and return the response.
backend/app/views.py:16
↓ 2 callers
Function
fetchMessages
(roomId: string)
frontend/src/App.tsx:396
↓ 2 callers
Function
init
()
frontend/src/ChatRoomDetail.tsx:29
↓ 2 callers
Function
login
(csrfToken: string, username: string, password: string)
frontend/src/AppApi.tsx:18
↓ 2 callers
Function
logout
(csrfToken: string, deviceId: string)
frontend/src/AppApi.tsx:27
↓ 2 callers
Function
sortRoomIds
(roomIds: number[], roomsById: Record<number, Room | null>)
frontend/src/App.tsx:153
↓ 2 callers
Method
update_user_room_topic
(self, user_id, room_id, op)
backend/chat/views.py:158
↓ 1 callers
Function
addMessage
(csrfToken: string, roomId: string, content: string)
frontend/src/AppApi.tsx:69
↓ 1 callers
Function
create_users
(n)
backend/app/utils.py:17
↓ 1 callers
Function
fetchCSRF
()
frontend/src/App.tsx:364
↓ 1 callers
Function
fetchRooms
()
frontend/src/App.tsx:414
↓ 1 callers
Function
fetchRooms
()
frontend/src/ChatSearch.tsx:50
↓ 1 callers
Function
getMessages
(roomId: string)
frontend/src/AppApi.tsx:64
↓ 1 callers
Function
getRoom
(roomId: string)
frontend/src/AppApi.tsx:59
↓ 1 callers
Function
getRooms
()
frontend/src/AppApi.tsx:49
↓ 1 callers
Function
getSubscriptionToken
(channel: string)
frontend/src/AppApi.tsx:42
↓ 1 callers
Function
getTime
(timeString: string)
frontend/src/ChatRoomDetail.tsx:82
↓ 1 callers
Method
get_queryset
(self, request)
backend/chat/admin.py:31
↓ 1 callers
Function
handleLogin
()
frontend/src/ChatLogin.tsx:19
↓ 1 callers
Function
initializeFirebase
(firebaseConfig: FirebaseOptions)
frontend/src/PushNotification.tsx:8
↓ 1 callers
Function
joinRoom
(csrfToken: string, roomId: string)
frontend/src/AppApi.tsx:80
↓ 1 callers
Function
leaveRoom
(csrfToken: string, roomId: string)
frontend/src/AppApi.tsx:89
↓ 1 callers
Function
main
Run administrative tasks.
backend/manage.py:7
↓ 1 callers
Function
onForegroundNotification
(callback: (payload: MessagePayload) => void)
frontend/src/PushNotification.tsx:58
↓ 1 callers
Function
onJoin
(roomId: number)
frontend/src/ChatSearch.tsx:24
↓ 1 callers
Function
onLeave
(roomId: number)
frontend/src/ChatSearch.tsx:38
↓ 1 callers
Function
onLogout
()
frontend/src/App.tsx:440
↓ 1 callers
Function
onPublication
(event: RealTimeEvent)
frontend/src/App.tsx:305
↓ 1 callers
Function
processMessageAdded
(body: Message)
frontend/src/App.tsx:239
↓ 1 callers
Function
processUserJoined
(body: RoomMembership)
frontend/src/App.tsx:258
↓ 1 callers
Function
processUserLeft
(body: RoomMembership)
frontend/src/App.tsx:276
↓ 1 callers
Function
publishMessage
(roomId: string, content: string)
frontend/src/App.tsx:388
↓ 1 callers
Function
registerDevice
(csrfToken: string, deviceInfo: DeviceInfo)
frontend/src/AppApi.tsx:98
↓ 1 callers
Function
removeNotificationToken
()
frontend/src/PushNotification.tsx:64
↓ 1 callers
Function
requestNotificationToken
(vapidKey: string)
frontend/src/PushNotification.tsx:19
↓ 1 callers
Function
scrollToBottom
()
frontend/src/ChatRoomDetail.tsx:75
↓ 1 callers
Function
searchRooms
()
frontend/src/AppApi.tsx:54
↓ 1 callers
Function
setupNotifications
()
frontend/src/App.tsx:204
Function
App
()
frontend/src/App.tsx:162
Function
ChatLayout
({ children, connected, unrecoverableError, onLogout, twoColumn, onToggleColumns })
frontend/src/ChatLayout.tsx:15
Function
ChatLogin
({ onSuccess })
frontend/src/ChatLogin.tsx:12
Function
ChatRoomDetail
({ fetchRoom, fetchMessages, publishMessage })
frontend/src/ChatRoomDetail.tsx:14
Function
ChatRoomList
()
frontend/src/ChatRoomList.tsx:5
Function
ChatSearch
({ 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
Method
broadcast
()
backend/chat/views.py:74
Function
device_register_view
(request)
backend/app/views.py:114
Function
getConnectionToken
()
frontend/src/AppApi.tsx:37
Function
get_connection_token
(request)
backend/app/views.py:32
Function
get_csrf
(request)
backend/app/views.py:28
Method
get_queryset
(self, request)
backend/chat/admin.py:19
Method
get_queryset
(self)
backend/chat/views.py:28
Method
get_queryset
(self)
backend/chat/views.py:40
Method
get_queryset
(self)
backend/chat/views.py:50
Method
get_queryset
(self)
backend/chat/views.py:175
Function
get_subscription_token
(request)
backend/app/views.py:45
Function
handleScroll
(e: UIEvent<HTMLDivElement>)
frontend/src/ChatRoomDetail.tsx:113
Function
login_view
(request)
backend/app/views.py:64
Function
logout_view
(request)
backend/app/views.py:91
Function
onFormSubmit
(e: React.FormEvent<HTMLFormElement>)
frontend/src/ChatRoomDetail.tsx:90
Function
onLoginSuccess
(userInfo: AuthInfo)
frontend/src/App.tsx:422
Method
post
(self, request, room_id)
backend/chat/views.py:240
Function
reducer
(state: ChatState, action: ChatAction)
frontend/src/App.tsx:28
Function
setup_dev
()
backend/app/utils.py:87
Function
setup_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
Method
short_content
(self, obj)
backend/chat/admin.py:34
Function
toggleColumns
()
frontend/src/App.tsx:177