Web Sockets เป็นเทคโนโลยี bidirectional communication รุ่นใหม่สำหรับเว็บแอป ทำงานผ่าน single socket expose ผ่าน JavaScript interface ใน HTML5 compliant browsers
Attributes:
| Attribute | Description |
|---|---|
| Socket.readyState | readonly attribute แทน state ของ connection ค่า: 0=connecting, 1=open, 2=closing, 3=closed |
| Socket.bufferedAmount | readonly attribute จำนวน bytes ของ UTF-8 text ที่ queue ไว้ด้วย send() method |