|
28 | 28 | on_deliver/8, |
29 | 29 | on_offline_message/5, |
30 | 30 | on_client_wakeup/1, |
31 | | - on_client_offline/2, |
32 | | - on_client_gone/2, |
| 31 | + on_client_offline/3, |
| 32 | + on_client_gone/3, |
33 | 33 | on_session_expired/1, |
34 | 34 | on_delivery_complete/8, |
35 | 35 | on_message_drop/3 |
@@ -353,15 +353,15 @@ on_client_wakeup(SubscriberId) -> |
353 | 353 | {MP, ClientId} = subscriber_id(SubscriberId), |
354 | 354 | send_event(on_client_wakeup, {MP, ClientId}). |
355 | 355 |
|
356 | | --spec on_client_offline(subscriber_id(), reason()) -> 'next'. |
357 | | -on_client_offline(SubscriberId, Reason) -> |
| 356 | +-spec on_client_offline(subscriber_id(), reason(), username()) -> 'next'. |
| 357 | +on_client_offline(SubscriberId, Reason, UserName) -> |
358 | 358 | {MP, ClientId} = subscriber_id(SubscriberId), |
359 | | - send_event(on_client_offline, {MP, ClientId, Reason}). |
| 359 | + send_event(on_client_offline, {MP, ClientId, Reason, UserName}). |
360 | 360 |
|
361 | | --spec on_client_gone(subscriber_id(), reason()) -> 'next'. |
362 | | -on_client_gone(SubscriberId, Reason) -> |
| 361 | +-spec on_client_gone(subscriber_id(), reason(), username()) -> 'next'. |
| 362 | +on_client_gone(SubscriberId, Reason, UserName) -> |
363 | 363 | {MP, ClientId} = subscriber_id(SubscriberId), |
364 | | - send_event(on_client_gone, {MP, ClientId, Reason}). |
| 364 | + send_event(on_client_gone, {MP, ClientId, Reason, UserName}). |
365 | 365 |
|
366 | 366 | -spec on_session_expired(subscriber_id()) -> 'next'. |
367 | 367 | on_session_expired(SubscriberId) -> |
|
0 commit comments