# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/jy5tvoa
全網最佳 websocket 封裝:完美支持斷網重連、自動心跳!**
簡介「websocket 在前端開發中,是一個必須掌握的技術!你可以不用,但必須掌握!」前幾天,就遇到這樣一個需求,要求界面的數據通過websocket實時推送,並且必須支持「斷網重連、自動心跳」! 自動心跳是定期向服務端發送小型數據包,如果一段時間內服務端沒有收到心跳響應,系統可能會斷開連接。websokect 的 API 非常簡單// 創建ws連接const ws = new WebSock ⌘ Read more