Skip to content

Instantly share code, notes, and snippets.

@Strernd
Last active May 14, 2019
Embed
What would you like to do?
const laconia = require("@laconia/core");
const api = require("@laconia/adapter-api").apigateway({ inputType: "params" });
const app = async (event, { }) => {
console.log(await event);
return event;
};
exports.handler = laconia(api(app));
service: laconia-websocket-test
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: eu-central-1
profile: default
functions:
hello:
handler: handler.handler
events:
- http: GET laconia
- websocket:
route: laconia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment