MCPcopy Create free account

hub / github.com/csmadhav/react-socket.io-chat-app / functions

Functions26 in github.com/csmadhav/react-socket.io-chat-app

↓ 2 callersFunctionregisterValidSW
(swUrl, config)
react-app/src/serviceWorker.js:57
↓ 1 callersFunctioncheckValidServiceWorker
(swUrl, config)
react-app/src/serviceWorker.js:101
↓ 1 callersFunctionfetchUsers
()
react-app/src/requests.js:7
↓ 1 callersMethodgetFilteredUserList
* * Implement filter logic on basis of search query.
react-app/src/components/UserList.js:31
↓ 1 callersMethodrender
()
react-app/src/components/NavBar.js:10
FunctioncomponentDidMount
* * Setups Axios to monitor XHR errors. * Initiates and listen to socket. * fetches User's list from backend to populate.
react-app/src/App.js:59
MethodcomponentDidMount
()
react-app/src/components/UserList.js:18
FunctioncreateMessage
* * @param {messageText} text * * creates message in a format in which messageList can render. * position is purposely omitted and will be
react-app/src/App.js:213
FunctioninitAxios
* * Checks if request from axios fails * and if it does then shows error modal.
react-app/src/App.js:75
FunctioninitSocketConnection
()
react-app/src/App.js:66
FunctiononChatClicked
* * @param {ChatItem} e * * handles if user clickes on ChatItem on left.
react-app/src/App.js:194
FunctiononClientDisconnected
* * Shows error if client gets disconnected.
react-app/src/App.js:110
FunctiononMessageInputChange
(e)
react-app/src/components/ChatBox.js:38
FunctiononMessageKeyPress
* * @param {KeyboardEvent} e * * listen for enter pressed and sends the message.
react-app/src/components/ChatBox.js:47
FunctiononMessageRecieved
* * @param {MessageRecievedFromSocket} message * * Triggered when message is received. * It can be a message from user himself but on diff
react-app/src/App.js:150
FunctiononReconnection
* * Established new connection if reconnected.
react-app/src/App.js:121
FunctiononSendClicked
* * Sends a message only if it is not falsy.
react-app/src/components/ChatBox.js:31
FunctiononUserClicked
* * @param {User} e * * called when user clicks to sign-in
react-app/src/App.js:181
Functionregister
(config)
react-app/src/serviceWorker.js:23
Methodrender
()
react-app/src/components/LoadingModal.js:12
Methodrender
()
react-app/src/components/UserList.js:38
Methodrender
()
react-app/src/components/ErrorModal.js:12
MethodsearchInput
(e)
react-app/src/components/UserList.js:19
FunctionsetupSocketListeners
* * Setup all listeners
react-app/src/App.js:133
FunctiontoggleViews
* Toggles views from 'ChatList' to 'ChatBox' * * only on Phone
react-app/src/App.js:232
Functionunregister
()
react-app/src/serviceWorker.js:129