See https://github.com/davedoesdev/mosca/commit/cfcc43c5be12b167284f03b41f6b4ef55cee1c7b (now part of https://github.com/mcollina/mosca/pull/28).