<?php
namespace app\index\controller;
class Pay {
public function notice(){
//websocket $server
}
}
swoole can use $server- > push ()
;
$server
.
but how to solve this problem when you can"t get $server
when you want to push messages to the client on the server?
is it necessary to use swoole websocket_client
to connect websocket_server
;
use client
to server send
data before server wants to push to the client?