Skip to content

How do I connect to websocket on another controller and send the message to the client? #13

@hiagofullstack

Description

@hiagofullstack

Can you show what it would be like to send a message to the client directly from another controller? Something like that
`<?php

namespace App\Controllers;
use WebSocket\Client;

class Dashboard extends BaseController
{
protected function sendNotification($id_user, $message){

   }

}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions