Does confd support WebSockets?
Can WebSockets be used for implementing the publish-subscribe model?
Is there a javascript library available for the same?
I am using RESTCONF APIs from web app to communicate to confd. I would like to check if I can do a pub-sub model if there are any changes made by other interfaces.
As you discovered, you can use the JSON-RPC API and Comet by for example using the subscribe_change, subscribe_cdboper, etc methods.
An example can be found in the ConfD example set under examples.confd/json_rpc/common_flow
My implementation is around RESTCONF.
So, wanted to know if websockets can be used or should i just continue with some comet related java script library.
You can get notifications for changes made to the configuration using RESTCONF notifications by subscribing to the built-in NETCONF base notifications stream.
For an example go to examples.confd/restconf/notifications and: