From b282d3f85140897c0bba77f070687fa409f949b8 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk Date: Wed, 19 Dec 2018 20:50:37 +0000 Subject: [PATCH] Basic REPL --- src/entryPoint.php | 16 +++++++++++++++- src/repl.php | 17 +++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/repl.php diff --git a/src/entryPoint.php b/src/entryPoint.php index 4eea49f..c1d1184 100644 --- a/src/entryPoint.php +++ b/src/entryPoint.php @@ -1,2 +1,16 @@ ' , reply_user($room_id, $msg_id, $trimmed) , "\n"; + $msg_id++; +} while($trimmed !== "exit"); \ No newline at end of file