LeRatierBretonnien
3b79a19ca5
All checks were successful
Release Creation / build (release) Successful in 53s
14 lines
471 B
JavaScript
14 lines
471 B
JavaScript
|
|
/**
|
|
* 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)
|
|
}
|
|
|