Project

General

Profile

Feature #3169

Updated by Junxiao Shi about 9 years ago

Implement `WebSocketTransport` for use with LinkService. 

 The `WebSocketTransport` is a subclass of [`Transport`](https://gist.github.com/yoursunny/22a7d53711b4e9bc198a) that communicates with a remote forwarder over a WebSocket. 

 * `WebSocketTransport` is local if RemoteUri contains a loopback address; otherwise it's non-local. 
 * `WebSocketTransport` is always on-demand, because it's application connecting to NFD. There is no persistent or permanent `WebSocketTransport`. 

 After implementing `WebSocketTransport`: 

 * change `WebSocketChannel` to initialize an `LpFace(GenericLinkService+WebSocketTransport)` `LpFace(SimpleLinkService+WebSocketTransport)` in place of `WebSocketFace` 
 * delete old `WebSocketFace`

Back