wip: slack-socketmode receives shortcut events only, will be left untouched as we shouldn't need it for now
@@ -71,7 +71,7 @@ on_connect_cb(void *p_sm, const char *ws_protocols) {
static void
on_text_cb(void *p_sm, const char *text, size_t len) {
- ERR("%.*s", (int)len, text);
+ PRINT("%.*s", (int)len, text);
}
static void
@@ -99,6 +99,9 @@ slack_socketmode_init(struct slack_socketmode *sm, const char config_file[])
.on_close = &on_close_cb
};
+ // @todo temporary debug_reconnect while development phase
+ strncat(sm->base_url, "&debug_reconnects=true", sizeof(sm->base_url));
+
sm->ws = ws_config_init(sm->base_url, &cbs, "SLACK SOCKET MODE", config_file);
ws_set_refresh_rate(sm->ws, 1);
