#1315 Implement c2s:closeall()

Reporter pep.
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Difficulty-Easy
  • Type-Enhancement
  • Priority-Medium
  • Status-Accepted
  1. pep. on

    Description of feature: Close all active c2s connections, instead of doing it one by one with `c2s:close(jid)`. In the past I have used the following to do this: host:deactivate("example.com", { condition = "reset" }); config:reload(); host:activate("example.com") It actually does a bit more things though. Motivation: (Why?) Can be useful when we need clients to reconnect.

  2. Zash on

    Good idea, should be easy.

    Changes
    • tags Status-Accepted Difficulty-Easy

New comment

Not published. Used for spam prevention and optional update notifications.