Join Slack
Powered by
:wave: how do I integrate SST websocket api in to ...
# help
k
Karolis Stulgys
06/16/2022, 4:30 PM
👋 how do I integrate SST websocket api in to SST api? Lets say I want to sendMessage when my lambda (api endpoint) is called
t
thdxr
06/16/2022, 5:01 PM
checkout this example project:
https://github.com/serverless-stack/serverless-stack/tree/master/examples/websocket
thdxr
06/16/2022, 5:02 PM
you can do this in your api function handler:
https://github.com/serverless-stack/serverless-stack/blob/master/examples/websocket/api/functions/sendMessage.ts#L12
k
Karolis Stulgys
06/18/2022, 7:44 AM
@thdxr
thank you.
Open in Slack
Previous
Next