[問(wèn)題描述]
主要是對(duì)此感到好奇,但是不甚明白其中原理,想做簡(jiǎn)單實(shí)現(xiàn),實(shí)現(xiàn)其中核心功能(即意思到了即可)
其中的理論知識(shí)點(diǎn)?
可以參考的資料(中英文)?
[環(huán)境&重現(xiàn)]
Windows10+Python2.7.10
服務(wù)器環(huán)境時(shí):Ubuntu14-Server
[補(bǔ)充]
熟悉Python的Tornado,Flask
在學(xué)習(xí)gevent
歡迎選擇我的課程,讓我們一起見(jiàn)證您的進(jìn)步~~
I think the front-end of multi-person editing is harder than the back-end. In fact, multi-person editing is essentially similar to a chat room. Synchronization between multiple people can be achieved using websocket, and the backend implements a service similar to echo server. The front-end editor feels like it requires a lot of code, and it depends on how rich text you want to achieve.
First you need an asynchronous framework, then you will use websocket, and the rest is to use the text editor. Finally, how often is the communication timed? Is it a process of waiting for the user to complete the input before sending or typing? It is sent once for each character input.