Update README.md

This commit is contained in:
nielsbaloe authored and GitHub committed 2019-06-01 14:35:54 +02:00
1 parent aff7e3784b
commit 7c5f13658a
1 file changed
+2 -2
+2 -2
View File
@@ -9,6 +9,6 @@ I am using EventSource instead of a websocket, which actually works in all brows
Currently this works when two users load the same URL in their browser. I use this to communicate with my girlfriend, we both know an unique URL. As far as I know there is no restriction that this can work for a groupchat, however this handshake should be between every pair, and you have to add javascript to show all the streams on screen.
##Usage
## Usage
To install, just place the file in a folder, and you might need to chmod the directory to writable (two files will be created) too. You also need to empty the folder once in a while, it will be stuffed with empty files - the reason for this is that I can not delete the file just after I have read it out, since the PHP locking mechanism works only when you have a file opened. If you'd use a database instead of a file, this problem would not arise, however for demonstration purposes that would only complicate the code. Be sure to hit F12 to see the javascript console for what is going on.
To install, just place the file in a folder, and you might need to chmod the directory to writable (two files will be created) too. You also need to empty the folder once in a while, it will be stuffed with empty files - the reason for this is that I can not delete the file just after I have read it out, since the PHP locking mechanism works only when you have a file opened. If you'd use a database instead of a file, this problem would not arise, however for demonstration purposes I want to keep the code as simple as possible. Be sure to hit F12 to look at the javascript console and see what is going on.