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
WebSocket Server and Client library for PHP. Works with the latest HyBi specifications, as well the older Hixie #76 specification used by older Chrome versions and some Flash fallback solutions.
5
2
6
3
This project was started to bring more interactive features to http://www.u2start.com/
7
4
8
-
Downloads
9
-
---------
10
-
The current version available for download is 1.0 RC1. This version has been thouroughly tested. However documentation is still minimal.
11
-
12
5
Features
13
-
---------
6
+
============
14
7
Server
15
8
* Hixie #76 and Hybi #12 protocol versions
16
9
* Flash client support (also serves XML policy file on the same port)
@@ -20,38 +13,32 @@ Server
20
13
21
14
Client
22
15
* Hybi / Hixie76 support.
16
+
* Event-based Async I/O
17
+
18
+
19
+
Getting started
20
+
=================
21
+
The easiest way to set up PHPWS is by using it as Composer dependency. Add the following to your composer.json
22
+
23
+
```json
24
+
{
25
+
"repositories": [
26
+
{
27
+
"type": "vcs",
28
+
"url": "https://github.com/Devristo/phpws"
29
+
}
30
+
],
31
+
"require": {
32
+
"devristo/phpws": "dev-react"
33
+
}
34
+
}
35
+
```
23
36
37
+
And run ```php composer.phar install```
24
38
25
-
Known Issues
26
-
-------------
27
-
* Lacks ORIGIN checking (can be implemented manually in onConnect using getHeaders(), just disconnect the user when you dont like the Origin header)
28
-
* No support for extension data from the HyBi specs.
29
-
30
-
Requirements
31
-
-------------
32
-
*Server*
33
-
* PHP 5.3
34
-
* Open port for the server
35
-
* PHP OpenSSL module to run a server over a encrypted connection
36
-
37
-
* Composer dependencies *
38
-
These will be installed automatically when using phpws as a composer package.
39
-
40
-
* Reactphp
41
-
* ZF2 Logger
42
-
43
-
*Client*
44
-
* PHP 5.3
45
-
* Server that implements the HyBi (#8-#12) draft version
46
-
* PHP OpenSSL module to connect using SSL (wss:// uris)
0 commit comments