I. INTRODUCTION
The tree structure [1] is a very popular way to show
information, it is widely used in web applications, has the
advantages of intuitive and convenient, especially in
expressing the directory structure, hierarchy, etc. Currently,
most web tree component is based on AJAX technology,
AJAX has proven successful for providing dynamic content
without reloading pages, but, using XmlHttpRequest to
periodically query the server, requires that a new socket
connection and a new HTTP message be created for each
update [2], which is resource-intensive. Comet technology
[3] achieving bidirectional communication is a way to solve
the problems mentioned. However, when data is received or
a timeout terminates the connection, the browser reconnects
and waits for the next update, this could result in more
communication overhead, and comet technology consumes
server's bandwidth and resources greatly because of
maintaining two connections, Web Socket [4] is a web
technology, which defines a full-duplex communication
channel that operates through a single socket over the web
[5]. It only establishes a TCP Socket connection after the
first request for connection, which can be able to save
server's resources, network bandwidth, and achieve real-time
communication well, it is a better way to solve the above
problems. Web tree component based on Web Socket
technology has achieved great improvement in the aspects of
real-time, communication overhead and the delay in time.
I .แนะนำ
ที่ทรีโครงสร้าง[ 1 ]เป็นที่ได้รับความนิยมเป็นอย่างมากในการแสดง
ข้อมูล,เป็นใช้กันอย่างแพร่หลายในเว็บ,แอพพลิเคชั่น,มี
ข้อดีของและใช้งานได้ง่ายสะดวกโดยเฉพาะใน
แสดงความคิดเห็นโครงสร้างไดเรกทอรี,ลำดับชั้น,เป็นต้นในปัจจุบัน,
มากที่สุดบนเว็บทรีคอมโพเนนต์ขึ้นอยู่กับเทคโนโลยี AJAX ,
AJAX ได้พิสูจน์แล้วว่าประสบความสำเร็จในการให้เนื้อหาแบบไดนามิก
ไม่มีการโหลดเค้าโครงหน้า,แต่,การใช้ xmlhttprequest เพื่อการสืบค้นเซิร์ฟเวอร์ที่
เป็นระยะๆต้องใช้ว่าข้อความซ็อกเก็ต
และการเชื่อมต่อ HTTP ใหม่ใหม่ที่ถูกสร้างขึ้นสำหรับ
การปรับปรุง[ 2 ]แต่ละครั้งซึ่งเป็นทรัพยากรมาก COMET แบบเป็นกลุ่มเทคโนโลยี
[ 3 ]การประสบความสำเร็จการสื่อสารสองทิศทางมีวิธีที่จะแก้ปัญหา
ที่กล่าวไว้ แต่ถึงอย่างไรก็ตามเมื่อมีการรับส่งข้อมูลจะได้รับหรือ
การหมดระยะเวลาที่ยกเลิกการเชื่อมต่อที่เบราเซอร์ที่ reconnects
และรอตามระยะเวลาเพื่อการปรับปรุงถัดไปที่แห่งนี้จะทำให้เกิดอยู่เหนือศีรษะ
การสื่อสารมากขึ้นและ COMET แบบเป็นกลุ่มเทคโนโลยีใช้
เซิร์ฟเวอร์ของทรัพยากรและแบนด์วิดธ์มากยิ่งขึ้นเพราะของ
การรักษาสองการเชื่อมต่อ Web ซ็อกเก็ต[ 4 ]มีเว็บ
เทคโนโลยีซึ่งจะกำหนด Full - duplex การสื่อสาร
ช่องที่ทำงานผ่านช่องเสียบเครื่องเดียวผ่านเว็บที่
[ 5 ] แต่มันจะสร้างการเชื่อมต่อ TCP ซ็อกเก็ตที่
คำขอเป็นครั้งแรกสำหรับการเชื่อมต่อที่สามารถสามารถบันทึก
เซิร์ฟเวอร์ของทรัพยากรแบนด์วิดธ์ของเครือข่ายและมีแบบ real - time
การสื่อสารมันเป็นวิธีการที่ดีในการแก้ไขปัญหามากกว่า
ปัญหา ทรีคอมโพเนนต์เว็บที่ใช้เทคโนโลยีซ็อกเก็ต
เว็บมีการปรับปรุงที่ดีเยี่ยมในด้านของ
แบบเรียลไทม์ค่าใช้จ่ายด้านการสื่อสารและการหน่วงเวลาในช่วงเวลา
การแปล กรุณารอสักครู่..
![](//thimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)