DEV Community

[Comment from a deleted post]
Collapse
 
juggernautsei profile image
Sherwin Gaddis • Edited

Daniel,
Thanks for this post but there is one thing that is missing. When a second method is added to the class. There is no response. So, say we added a second method and call it payload.

 public function receivePayload($payload)
 {
       /*  Do stuff here */
       return "success";
 }

When calling that method from the client

$delivery = $client->call('receivePayload',[['payload' => $message]]);

The payload is delivered and processed but the client does not get a response from the server

dumping the client reveals
C:\eRxGateway\www\apa\WenoErrors\clientapi.php:55:
object(client)[3]
public 'delivery' => null

Can you tell me why there is no response sent back from the method?
stackoverflow.com/questions/569130...