Building an acknowledgement function to a Vue Socket.io emit method

InstructorMark Barton

Share this video with your friends

Send Tweet

An acknowledgement function allows the client side call to receive a server side generated response as part of the callback.

This can be useful where the client needs confirmation that the initial call has succeeded or the payload has been manipulated with Server side logic and returned back to the client.

In this lesson we enhance the previous lesson Quiz Vue component to simulate checking the answer on the server and then returning back to the client in the callback function the result of the check.