Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createWebSocketAdapter = () => app => async (event, laconiaContext) => {
try {
const output = await app(parseWebSocket(event), laconiaContext);
return res(output);
} catch (err) {
return res(err.message, 500);
}
};