Coder Social home page Coder Social logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Hi All, Is this fixed by any chance??

many thanks

Original comment by [email protected] on 30 Sep 2011 at 7:34

from phpwebsocket.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.