ssb: Hook up some more disconnect messaging.

This commit is contained in:
2024-12-26 20:12:04 -05:00
parent 8f51eb63b0
commit 7843168fad
5 changed files with 67 additions and 65 deletions

View File

@ -514,8 +514,9 @@ JSContext* tf_ssb_connection_get_context(tf_ssb_connection_t* connection);
/**
** Close a connection.
** @param connection The connection.
** @param reason Human-readable reason for closing the connection.
*/
void tf_ssb_connection_close(tf_ssb_connection_t* connection);
void tf_ssb_connection_close(tf_ssb_connection_t* connection, const char* reason);
/**
** Check whether a connection is connected.