Fix actions/tour
This commit is contained in:
13
module/socket.mjs
Normal file
13
module/socket.mjs
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
/**
|
||||
* Handles socket events based on the provided action.
|
||||
*
|
||||
* @param {Object} [params={}] The parameters for the socket event.
|
||||
* @param {string|null} [params.action=null] The action to be performed.
|
||||
* @param {Object} [params.data={}] The data associated with the action.
|
||||
* @returns {*} The result of the action handler, if applicable.
|
||||
*/
|
||||
export function handleSocketEvent({ action = null, data = {} } = {}) {
|
||||
console.debug("handleSocketEvent", action, data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user