# 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/6fxifwa
你還在使用 websocket 實現實時消息推送嗎?**
前言在日常的開發中,我們經常能碰見服務端需要主動推送給客戶端數據的業務場景,比如數據大屏的實時數據,比如消息中心的未讀消息,比如聊天功能等等。本文主要介紹 SSE 的使用場景和如何使用 SSE。服務端向客戶端推送數據的實現方案有哪幾種?我們常規實現這些需求的方案有以下三種輪詢 websocket SSE 輪詢簡介在很久很久以前,前端一般使用輪詢來進行服務端向客戶端進行消息的僞推送 ⌘ Read more