KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Edit: I tried this phpwebsocket: http://www.wilky.it/Shared/phpwebsocket.zip and it works in Firefox, but my question still remains: how do I get websockets to work with a php server in Chrome 17? I'm following the tutorial here: http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/ It appears as though the client connects, and then immediately disconnects. I noticed this error in the console: Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing I'm trying it in Chrome 17.0.963.56 on my WAMP localhost with the php_sockets extension enabled. I saw mentioned somewhere that Chrome had changed what it supported, but it didn't go in depth on how to fix it. I was hoping someone could step me through it. (I'm brand new to websockets). Server: {PATH}>php startDaemon.php 2012-02-20 07:02:51 System: Socket Resource id #7 created. 2012-02-20 07:02:51 System: Socket bound to localhost:8000. 2012-02-20 07:02:51 System: Start listening on Socket. 2012-02-20 07:03:01 WebSocket: Resource id #8 CONNECTED! 2012-02-20 07:03:01 WebSocket: Requesting handshake… 2012-02-20 07:03:01 WebSocket: Handshaking… 2012-02-20 07:03:01 WebSocket: Done handshaking… 2012-02-20 07:03:01 WebSocket: Resource id #8 disconnected! Client: Socket Status: 0 Socket Status: 3 (Closed)
Tags (comma-separated)
Save Edits
Cancel