| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-01-12 20:35:49 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-01-12 20:35:49 UTC |
| parent | 942b13b86ede90c051be441d141c44d87a524e91 |
| borogove/streams/XmppJsStream.hx | +7 | -0 |
diff --git a/borogove/streams/XmppJsStream.hx b/borogove/streams/XmppJsStream.hx index 1c7b852..b166490 100644 --- a/borogove/streams/XmppJsStream.hx +++ b/borogove/streams/XmppJsStream.hx @@ -172,6 +172,13 @@ class XmppJsStream extends GenericStream { }, "offline"); } + public function enableDebug() { + debug = true; + if (client != null) { + new XmppJsDebug(client, true); + } + } + public function register(domain: String, preAuth: Null<String>) { final entity = new XmppJsClientCore({ service: domain, domain: domain }); final middleware = new XmppJsMiddleware({ entity: entity });