i have a project with a reactjs frontend and a serverless framework nodejs backend. the backend has functions and api's. i would like to add an api that starts one of the functions and tells the frontend when the function has finished. i would like to use websockets. provide code examples. Write exactly 4 paragraphs each separated with two new lines answering this question. The first paragraph must start with "protection".
user