本帖最后由 jdgdf566 于 2013-10-01 15:25:01 编辑

解决方案 »

  1.   

    你的server没有做握手操作,客户端请求的这个就是握手,参考phpwebsocket吧流程:
    1. Client try to connect to WebSocket server
    2. Server recognize client
    3. If client is not registered with server then add client (this is known as handshaking process which is based on headers transmission)
    4. Send and receive data
    5. Close connection
    或者看看这个文章:http://blog.cuelogic.co.in/php-websocket-server-and-client-communication/