Process the session_start event. Typical actions for the session_start event are requesting the roster and broadcasting an initial presence stanza. Arguments: event -- An empty dictionary. The session_start event does not pr
(self, event)
| 324 | self.add_event_handler("session_start", self.start) |
| 325 | |
| 326 | def start(self, event): |
| 327 | """ |
| 328 | Process the session_start event. |
| 329 | |
| 330 | Typical actions for the session_start event are |
| 331 | requesting the roster and broadcasting an initial |
| 332 | presence stanza. |
| 333 | |
| 334 | Arguments: |
| 335 | event -- An empty dictionary. The session_start |
| 336 | event does not provide any additional |
| 337 | data. |
| 338 | """ |
| 339 | self.log_debug('start') |
| 340 | self.send_presence() |
| 341 | self.get_roster(timeout=60) |