You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,16 @@ PHP and WebSockets
4
4
5
5
Quick hack to implement websockets in php. As of Feb/10 the only browsers that support websockets are Google Chrome and Webkit Nightlies. Get it from here http://www.google.com/chrome
6
6
7
-
Browse the source code
8
-
7
+
###Browse the source code
8
+
,,,js
9
9
Changelog
10
10
010.02.16 - Added basic demo and chatbot
11
11
010.02.16 - Added users list to keep track of handshakes
12
12
010.02.16 - Organized everything in a reusable websocket class
13
13
010.02.16 - Minor cosmetic changes
14
-
Client side
14
+
,,,
15
+
###Client side
16
+
,,,js
15
17
var host = "ws://localhost:12345/websocket/server.php";
16
18
try{
17
19
socket = new WebSocket(host);
@@ -21,9 +23,11 @@ try{
21
23
socket.onclose = function(msg){ log("Disconnected - status "+this.readyState); };
0 commit comments