is this thing listening?

This commit is contained in:
2024-01-17 22:06:13 -05:00
commit 8809203953
5 changed files with 813 additions and 0 deletions

49
run.php Normal file
View File

@@ -0,0 +1,49 @@
<?php
new app();
class app{
public function __construct(){
include "lib/fuckwebsockets.php";
$this->ws = new fuckwebsockets();
$this->ws->create_server(
[
"ip" => "localhost",
"port" => 8080
]
);
}
public function onConnect($client){
}
public function onFailedConnect($source, $opcode, $reason){
}
public function onPing($client, $message){
}
public function onPong($client, $message){
}
public function onMessage($client, $opcode, $message){
}
public function onDisconnect($client, $opcode, $reason){
}
}