Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Chanran/vueSocketChatroom
/ functions
Functions
58 in github.com/Chanran/vueSocketChatroom
⨍
Functions
58
◇
Types & classes
0
↓ 4 callers
Function
getSessionId
(socket)
server/middlewares/socketHandler.js:21
↓ 3 callers
Function
findInUsers
(sessionId)
server/models/users.js:7
↓ 2 callers
Function
checkLogin
(to, from, next, loginNextRoute = '', logoutNextRoute = '', ErrorNextRoute = '')
src/api/api.js:13
↓ 1 callers
Function
addRecord
* 添加一条聊天记录 * * @param {string} username * @param {string} sessionId * @param {string} msg * @param {string} time
server/models/records.js:32
↓ 1 callers
Function
getUnSignedCookie
(cookieString, cookieName)
server/middlewares/socketHandler.js:14
↓ 1 callers
Function
login
(vueInstance, username)
src/api/api.js:36
↓ 1 callers
Function
logout
(vueInstance)
src/api/api.js:63
↓ 1 callers
Function
messageHandler
(socketio)
server/middlewares/socketHandler.js:29
Function
[types.ADD_PEOPLE]
(state, user)
src/store/modules/people.js:120
Function
[types.ADD_PRIVATE_RECORD]
(state, privateRecord)
src/store/modules/people.js:132
Function
[types.ADD_RECORD]
(state, record)
src/store/modules/records.js:51
Function
[types.ADD_TALK_TO_PEOPLE]
(state, index)
src/store/modules/people.js:116
Function
[types.END_LOADING]
(state)
src/store/store.js:43
Function
[types.GET_OTHERS_FAILURE]
(state)
src/store/modules/people.js:94
Function
[types.GET_OTHERS_SUCCESS]
(state, others)
src/store/modules/people.js:80
Function
[types.GET_RECORDS_FAILURE]
(state)
src/store/modules/records.js:48
Function
[types.GET_RECORDS_SUCCESS]
(state, records)
src/store/modules/records.js:39
Function
[types.GET_USERNAME_SUCCESS]
(state, user)
src/store/modules/people.js:123
Function
[types.REDUCE_TALK_TO_PEOPLE]
(state, value)
src/store/modules/people.js:104
Function
[types.SET_TALKING_TO]
(state, value)
src/store/modules/people.js:100
Function
[types.START_LOADING]
(state)
src/store/store.js:39
Function
addPeople
({ commit }, user)
src/store/modules/people.js:40
Function
addPrivateRecord
({ commit }, privateRecord)
src/store/modules/people.js:72
Function
addRecord
({ commit }, record)
src/store/modules/records.js:32
Function
addTalkToPeople
({ commit }, index)
src/store/modules/people.js:52
Function
addUser
(username, sessionId)
server/models/users.js:16
Function
allUsers
()
server/models/users.js:53
Function
choosePerson
(value)
src/components/Chat/Chat.js:190
Function
createServer
* 创建server * @param {obejct} app * @returns {object} server
server/middlewares/socketHandler.js:121
Function
data
()
src/components/Login/Login.js:17
Function
data
()
src/components/Avatar/Avatar.js:4
Function
data
()
src/components/PrivateChat/PrivateChat.js:12
Function
data
()
src/components/NotFound/NotFound.js:3
Function
data
()
src/components/GroupChat/GroupChat.js:12
Function
data
()
src/components/Chat/Chat.js:48
Function
endLoading
({ commit })
src/store/store.js:31
Function
findUser
(sessionId)
server/models/users.js:36
Function
getAllRecords
()
server/models/records.js:57
Function
getOthers
({ commit })
src/store/modules/people.js:23
Function
getOthers
(cb, errorCb)
src/api/api.js:89
Function
getRecords
({ commit })
src/store/modules/records.js:16
Function
getRecords
(cb, errorCb)
src/api/api.js:110
Function
getUser
({ commit })
src/store/modules/people.js:55
Function
getUser
(cb, errorCb)
src/api/api.js:124
Function
getUsername
(sessionId)
server/models/users.js:57
Function
login
()
src/components/Login/Login.js:23
Function
logout
()
src/components/Chat/Chat.js:203
Function
mounted
()
src/components/Avatar/Avatar.js:9
Function
mounted
()
src/components/PrivateChat/PrivateChat.js:17
Function
mounted
()
src/components/Chat/Chat.js:54
Function
onConfirm
()
src/components/Chat/Chat.js:207
Function
otherUsers
(sessionId)
server/models/users.js:40
Function
reduceTalkToPeople
({ commit }, value)
src/store/modules/people.js:48
Function
sendMsg
()
src/components/Chat/Chat.js:140
Function
setTalkingTo
({ commit }, value)
src/store/modules/people.js:44
Function
setUserSocket
(sessionId, socket)
server/models/users.js:28
Function
startLoading
({ commit })
src/store/store.js:27
Function
talkToThis
(index)
src/components/Chat/Chat.js:187