chore: name

This commit is contained in:
cha0s 2024-01-06 16:20:05 -06:00
parent 64b4b0899b
commit 2c702d7b05

View File

@ -12,11 +12,11 @@ export const hooks = {
*/
'@flecks/socket.intercom': (req) => ({
// This would have been called like:
// `const result = await req.intercom('someChannel', payload)`.
// `const result = await req.intercom('@my/fleck.key', payload)`.
// `result` will be an `n`-length array, where `n` is the number of server instances. Each
// element in the array will be the result of `someServiceSpecificInformation()` running
// against that server instance.
someChannel: async (payload, server) => {
'@my/fleck.key': async (payload, server) => {
return someServiceSpecificInformation();
},
}),