Comments (10)
Sorry for the double post, but the current revision is actually 10 (see:
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10).
Not only has the handshake changed, but the packet framing is entirely new.
I have modified the code to work with the new handshake, and I am currently
working on the framing.
Original comment by [email protected]
on 15 Aug 2011 at 8:19
from phpwebsocket.
I also have modified the code to accept both hixie and hybi handshakes. Framing
is also implemented, although partially. Dont really know what to do with it,
its completely different now (hacked in some things I needed as well like
handling different URIs and admin connections). I am sure others are able to do
it better, but I could upload it somewhere for reference?
Original comment by [email protected]
on 17 Aug 2011 at 4:57
from phpwebsocket.
Would love to see the reference, I am working on the same issue, mine is all
hacked together and only half works at the moment.
Original comment by [email protected]
on 17 Aug 2011 at 9:08
from phpwebsocket.
Ok here it is. It works fine on a hobby site. Unfortunately I dont have a fully
working demo.
Here are the steps to make it work:
* Extend the WebSocketServer class
* Add some ResourceHandlers to route different URIs to different classes.
The resourcehandlers receive the messages if URI matches, the
WebSocketServer::onMessage reacts to all messages.
Also the Flash Policy file hack posted on this projectpage is embedded.
The code is not always consistant, so be warned.
Original comment by [email protected]
on 18 Aug 2011 at 12:56
Attachments:
from phpwebsocket.
I'm hitting the same issues. Has anyone successfully gotten this to run using
HyBi 10?
Original comment by [email protected]
on 30 Aug 2011 at 4:35
from phpwebsocket.
Making phpwebsocket work with HyBi 10 takes lots of modifications. Seems
markfurneaux, [email protected] and myself work on making it compatible. I have
it running as I mentioned in comment #4, but it works a bit different than it
used to.
Original comment by [email protected]
on 30 Aug 2011 at 7:44
from phpwebsocket.
Hi All, Is this fixed by any chance??
many thanks
Original comment by [email protected]
on 30 Sep 2011 at 7:34
from phpwebsocket.
Hi, I am trying to use PHPWebSocket for a game I am working on and im having
loads of trouble trying to find a working version. Does anybody have a version
of PHP Web Socket in its simplest form. I have had a go at trying to make it
work and I do have some communication but I don't think I'm doing the handshake
properly. Could someone help?
Original comment by [email protected]
on 16 Nov 2011 at 4:48
Attachments:
from phpwebsocket.
Hi all!
I've the same issue! I still can't connect to the server.php
I'm using XAMPP-package as Webserver and in placed the server.php file in
"localhost/SocketServer/phpWebSockets/googlewebsockets/server.php".
So is it right, that I'll have to initialize the variable "host" like that:
"var host =
"ws://localhost:12345/SocketServer/phpWebSockets/googlewebsockets/server.php";"
??
thanks
Original comment by [email protected]
on 13 Dec 2011 at 10:02
from phpwebsocket.
Hi, i've updated the handshake and now it works with the last protocol under
firefox and chrome, but i cannot receive any messages after the handshake.
The js client send() command is executed but no packages are received on server
side after the handshake. I guess is related with the framing.
Any updates on that?
Original comment by [email protected]
on 15 Dec 2011 at 3:14
from phpwebsocket.
Related Issues (20)
- Patch for /trunk/ phpwebsocket/websocket.class.php
- Decode broken when multiple calls same time
- Use on own Webspace on Strato
- what is" function $ (id)" is exactly doing in client code?
- update new version
- can't run the app
- Running on windows HOT 1
- Several Clients
- Patch for /trunk/ phpwebsocket/server.php
- Space ' ' in directory name
- on send button click getting InvalidStateError HOT 1
- Getting weird characters at the server side. HOT 1
- Patch for /trunk/ phpwebsocket/server.php
- Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing HOT 1
- Patch for /trunk/ phpwebsocket/client.html
- Patch for /trunk/ phpwebsocket/websocket.class.php
- Patch for /trunk/ phpwebsocket/server.php
- Patch for /trunk/ phpwebsocket/client.html
- Patch for /trunk/ phpwebsocket/chatbot.demo.php
- socket_tcp_bind: tcp_socket: Can't assign requested address
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpwebsocket.