register works, login almoast, token system in build

This commit is contained in:
GitProtogen
2026-03-05 13:23:37 +01:00
parent e56169b299
commit 41b846f229
5 changed files with 70 additions and 11 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ use Ratchet\ConnectionInterface;
class Utils
{
function sendJson(ConnectionInterface $conn, string $head, string $jsonData): void
function responeJson(ConnectionInterface $conn, string $head, string $jsonData): void
{
$conn->send("HTTP/1.1 {$head}\r\nContent-Type: application/json\r\n\r\n{$jsonData}");
}