35539-vm/vendor/cboden/ratchet/src/Ratchet/MessageInterface.php
Flatlogic Bot 7794e16d3d Websocket
2025-11-07 06:54:43 +00:00

13 lines
402 B
PHP

<?php
namespace Ratchet;
interface MessageInterface {
/**
* Triggered when a client sends data through the socket
* @param \Ratchet\ConnectionInterface $from The socket/connection that sent the message to your application
* @param string $msg The message received
* @throws \Exception
*/
function onMessage(ConnectionInterface $from, $msg);
}