BioforestChain / dweb_browser

BioforestChain Infrastructure
https://docs.dweb-browser.org
MIT License
13 stars 4 forks source link

让 IPC 支持 SSE #81

Open Gaubee opened 9 months ago

Gaubee commented 9 months ago

IpcRequest用来发起连接 IpcResponse用来回应连接,并且基于 IpcEvent 对象提供内容

Gaubee commented 8 months ago

目前IPC已经通过IpcEvent来实现了WebSocket:

  1. Client与Server 都使用 ipcRequest.getChannel() 得到一个双工对象。
  2. 那么可以同理,Client 使用ipcRequest.getSource()获得一个单向读取对象。Server使用ipcResponse.getSink()获得一个单向写入对象。