()
| 151 | } |
| 152 | |
| 153 | async onMeSynced () { |
| 154 | console.log('me synced') |
| 155 | // this.ws.send('me synced') // ping to make sure server websocket has correct user id |
| 156 | if (this.connected) { |
| 157 | await this.resetWSInfos() |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | addFriend (id, { role = 'friend', online = false } = {}) { |
| 162 | const state = { role, online } |
nothing calls this directly
no test coverage detected