HTML5 WebSocket example, websocket live chat, PHP websocket instance

Source: Internet
Author: User
Tags php websocket live chat
WebSocket Online test Tool http://ws.douqq.com/

1. The connection format is ws://ip/domain name: port (example ws://119.29.3.36:5354)
2, for the test environment of the intranet, just fill in the service side of the intranet IP and port
3. You can connect to the service-side WS address I provided above to test your own client

This website supports QQ robot to send message, first add robot qq:625789120 as friend Test

1. Friend message Format {"type": "1", "QQ": "94113786", "Qun": "", "msg": "Hello"}

2. Group message Format {"type": "2", "Qun": "293271355", "QQ": "", "msg": "Hello"}

3. Likes {"type": "3", "QQ": "94113786"}

4. Look up {"type": "4", "QQ": "94113786"}

HTML5 WebSocket example, websocket live chat, PHP websocket instance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.