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
1×
Become a member
to unlock all features

Level Up!

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

Autoplay

    Build a Vue Component to send a message to specific users using Socket.io

    vueVue.js
    ^2.5.21

    Building on the previous lesson this lesson will build a Vue component for composing a message to send to a specific user or group of users.

    The lesson will not use HTTP for communication between Server and Client and Client to Server but instead use Socket.io to demonstrate bi-directional real time communication.

    Once the payload has been received at the server the targeted User or Group will be identified and Socket.io will then emit the payload to them. The clients will then use the previous lessons PopupMessage component to display the message.