Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Mapping a id to a known User using an example Vue component.


    Often we need to send data to specific users or groups of users using, but by default only provides a unique volatile ID so this lesson will demonstrate how we can map on the Server a known User with that Socket ID.

    The lesson will build a new Vue component which will allow a User to select their name and group and then send this information from the client to the server using the Socket.

    This lesson will also use SessionStorage to store this information so if the browser is refreshed then the component will be auto populated and the details sent to the server.