MCPcopy Index your code
hub / github.com/codecombat/codecombat / updateFriend

Method updateFriend

app/lib/wsBus.js:176–182  ·  view source on GitHub ↗
(id, state)

Source from the content-addressed store, hash-verified

174 }
175
176 updateFriend (id, state) {
177 if (!(id in this.wsInfos.friends)) {
178 return
179 }
180 this.wsInfos.friends[id] = _.assign(this.wsInfos.friends[id], state) // override friend here
181 Backbone.Mediator.publish('websocket:user-online', {user: id})
182 }
183}

Callers 3

initMethod · 0.95
getPublishMessageMethod · 0.95
updateOnlineFriendsMethod · 0.95

Calls 1

publishMethod · 0.80

Tested by

no test coverage detected