Task #1468
closed
WebSockets channel and face
Added by Alex Afanasyev over 10 years ago.
Updated over 10 years ago.
Description
Develop WebSockets listener and faces.
- FaceUri format
- remote: wsclient://IP:port
This is not same as "ws" scheme, because this URI can't be used to connect to that peer.
- local: ws or wss scheme
- Listener IP, port, and path are configurable.
- defaults: 0.0.0.0, 8080, /
- path: suppose path is set to "/example", client would need to connect to "ws://hostname:8080/example"
- Accepted faces are considered non-local.
- Subject changed from Import c++ implementation of websocket proxy into NFD to WebSockets channel and face
- Description updated (diff)
- Category changed from Tools to Faces
- Estimated time set to 6.00 h
This is different and more complex task from what I put. Don't we want to have a first step of just introducing websocket proxy as a separate daemon?
Separate daemon already exists, and requires changing port number only. It merely passes octets between WebSockets stream and TCP stream. That daemon could stay in its own git repository.
In Version 2 I'd like to see full WebSockets support: listener in NFD process.
It exists, but it is not bundled/tested inside NFD package.
The proxy should stay where it is, and be tested with NFD and NDN-JS (when it adopts TLV), much earlier than V2. V2 is too late for this feature.
V2 needs full integrated WebSockets support.
Wenato submitted the code and the question now is how we want to handle the dependency. The dependency is a head-only library (https://github.com/zaphoyd/websocketpp), which Wentao added as a git submodule. Is it a way we want to go or we should do something else?
- Status changed from New to Code review
- % Done changed from 0 to 80
- Blocks Task #1553: Unit-tests for WebSocket implementation added
- Status changed from Code review to Closed
- % Done changed from 80 to 100
There's no active Change on Gerrit. I assume this Task is complete.
Also available in: Atom
PDF