Server hooks
Server hooks, what are they? How to implement them ?
How to implement ?
Http
htSdk.hooks.httpServer.request.v1({
beforeRecord({ readableInput, inputMeta, userMeta }) {
// Write your decryption/decoding logic
// console.log(readableInput, inputMeta, userMeta);
return { inputMeta, readableInput, userMeta }
},
beforeReplay({ readableInput, inputMeta, userMeta }) {
// Write your encoding/encryption logic
// console.log(readableInput, inputMeta, userMeta);
return { inputMeta, readableInput, userMeta };
},
});UserMeta
Last updated