QuickSocket is a library used for php server client cross-language scripting
ExecuteJS($user, "alert($time)");
function AlertTime(time) {
alert(time)
}
This example shows how QuickSokets can be used to call js functions on the client from the server over websockets.
if(isset($_SOCKET["name"]) {
$name = $_SOCKET["name"];
ExecuteJS($user, "AlertName($name)");
}
<form method="SOCKET">
What is your name?
<br>
<input type="text" name="name">
<input type="submit">
</form>
function AlertName(name) {
alert(name)
}
This example demonstrates usage of the SOCKET form method
To launch the Quicksocket just open QuickSocket.php in PHP-CLI and start a normal webserver with PHP-FPM
QuickSockets should not be used by anyone for anything, yet