File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ class Codebolt {
101101 utils = cbutils ;
102102
103103 /**
104- * Sets up a listener for incoming user messages with a direct handler function.
105- * @param {Function } handler - The handler function to call when a user message is received.
104+ * Sets up a listener for incoming messages with a direct handler function.
105+ * @param {Function } handler - The handler function to call when a message is received.
106106 * @returns {void }
107107 */
108- onUserMessage ( handler : ( userMessage : any ) => void | Promise < void > | any | Promise < any > ) {
108+ onMessage ( handler : ( userMessage : any ) => void | Promise < void > | any | Promise < any > ) {
109109 const waitForConnection = ( ) => {
110110 if ( cbws . messageManager ) {
111111 const handleUserMessage = async ( response : any ) => {
You can’t perform that action at this time.
0 commit comments