MCPcopy Create free account

hub / github.com/Chanran/vueSocketChatroom / functions

Functions58 in github.com/Chanran/vueSocketChatroom

↓ 4 callersFunctiongetSessionId
(socket)
server/middlewares/socketHandler.js:21
↓ 3 callersFunctionfindInUsers
(sessionId)
server/models/users.js:7
↓ 2 callersFunctioncheckLogin
(to, from, next, loginNextRoute = '', logoutNextRoute = '', ErrorNextRoute = '')
src/api/api.js:13
↓ 1 callersFunctionaddRecord
* 添加一条聊天记录 * * @param {string} username * @param {string} sessionId * @param {string} msg * @param {string} time
server/models/records.js:32
↓ 1 callersFunctiongetUnSignedCookie
(cookieString, cookieName)
server/middlewares/socketHandler.js:14
↓ 1 callersFunctionlogin
(vueInstance, username)
src/api/api.js:36
↓ 1 callersFunctionlogout
(vueInstance)
src/api/api.js:63
↓ 1 callersFunctionmessageHandler
(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
FunctionaddPeople
({ commit }, user)
src/store/modules/people.js:40
FunctionaddPrivateRecord
({ commit }, privateRecord)
src/store/modules/people.js:72
FunctionaddRecord
({ commit }, record)
src/store/modules/records.js:32
FunctionaddTalkToPeople
({ commit }, index)
src/store/modules/people.js:52
FunctionaddUser
(username, sessionId)
server/models/users.js:16
FunctionallUsers
()
server/models/users.js:53
FunctionchoosePerson
(value)
src/components/Chat/Chat.js:190
FunctioncreateServer
* 创建server * @param {obejct} app * @returns {object} server
server/middlewares/socketHandler.js:121
Functiondata
()
src/components/Login/Login.js:17
Functiondata
()
src/components/Avatar/Avatar.js:4
Functiondata
()
src/components/PrivateChat/PrivateChat.js:12
Functiondata
()
src/components/NotFound/NotFound.js:3
Functiondata
()
src/components/GroupChat/GroupChat.js:12
Functiondata
()
src/components/Chat/Chat.js:48
FunctionendLoading
({ commit })
src/store/store.js:31
FunctionfindUser
(sessionId)
server/models/users.js:36
FunctiongetAllRecords
()
server/models/records.js:57
FunctiongetOthers
({ commit })
src/store/modules/people.js:23
FunctiongetOthers
(cb, errorCb)
src/api/api.js:89
FunctiongetRecords
({ commit })
src/store/modules/records.js:16
FunctiongetRecords
(cb, errorCb)
src/api/api.js:110
FunctiongetUser
({ commit })
src/store/modules/people.js:55
FunctiongetUser
(cb, errorCb)
src/api/api.js:124
FunctiongetUsername
(sessionId)
server/models/users.js:57
Functionlogin
()
src/components/Login/Login.js:23
Functionlogout
()
src/components/Chat/Chat.js:203
Functionmounted
()
src/components/Avatar/Avatar.js:9
Functionmounted
()
src/components/PrivateChat/PrivateChat.js:17
Functionmounted
()
src/components/Chat/Chat.js:54
FunctiononConfirm
()
src/components/Chat/Chat.js:207
FunctionotherUsers
(sessionId)
server/models/users.js:40
FunctionreduceTalkToPeople
({ commit }, value)
src/store/modules/people.js:48
FunctionsendMsg
()
src/components/Chat/Chat.js:140
FunctionsetTalkingTo
({ commit }, value)
src/store/modules/people.js:44
FunctionsetUserSocket
(sessionId, socket)
server/models/users.js:28
FunctionstartLoading
({ commit })
src/store/store.js:27
FunctiontalkToThis
(index)
src/components/Chat/Chat.js:187