register works, login almoast, token system in build
This commit is contained in:
+1
-1
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user