Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csmadhav/react-socket.io-chat-app
/ functions
Functions
26 in github.com/csmadhav/react-socket.io-chat-app
⨍
Functions
26
◇
Types & classes
10
↓ 2 callers
Function
registerValidSW
(swUrl, config)
react-app/src/serviceWorker.js:57
↓ 1 callers
Function
checkValidServiceWorker
(swUrl, config)
react-app/src/serviceWorker.js:101
↓ 1 callers
Function
fetchUsers
()
react-app/src/requests.js:7
↓ 1 callers
Method
getFilteredUserList
* * Implement filter logic on basis of search query.
react-app/src/components/UserList.js:31
↓ 1 callers
Method
render
()
react-app/src/components/NavBar.js:10
Function
componentDidMount
* * 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
Method
componentDidMount
()
react-app/src/components/UserList.js:18
Function
createMessage
* * @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
Function
initAxios
* * Checks if request from axios fails * and if it does then shows error modal.
react-app/src/App.js:75
Function
initSocketConnection
()
react-app/src/App.js:66
Function
onChatClicked
* * @param {ChatItem} e * * handles if user clickes on ChatItem on left.
react-app/src/App.js:194
Function
onClientDisconnected
* * Shows error if client gets disconnected.
react-app/src/App.js:110
Function
onMessageInputChange
(e)
react-app/src/components/ChatBox.js:38
Function
onMessageKeyPress
* * @param {KeyboardEvent} e * * listen for enter pressed and sends the message.
react-app/src/components/ChatBox.js:47
Function
onMessageRecieved
* * @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
Function
onReconnection
* * Established new connection if reconnected.
react-app/src/App.js:121
Function
onSendClicked
* * Sends a message only if it is not falsy.
react-app/src/components/ChatBox.js:31
Function
onUserClicked
* * @param {User} e * * called when user clicks to sign-in
react-app/src/App.js:181
Function
register
(config)
react-app/src/serviceWorker.js:23
Method
render
()
react-app/src/components/LoadingModal.js:12
Method
render
()
react-app/src/components/UserList.js:38
Method
render
()
react-app/src/components/ErrorModal.js:12
Method
searchInput
(e)
react-app/src/components/UserList.js:19
Function
setupSocketListeners
* * Setup all listeners
react-app/src/App.js:133
Function
toggleViews
* Toggles views from 'ChatList' to 'ChatBox' * * only on Phone
react-app/src/App.js:232
Function
unregister
()
react-app/src/serviceWorker.js:129