face: ProtocolFactory registry
refs #3904
Change-Id: Ic7c8b3d6138b7c27d4189a2e15cc646055ad1294
diff --git a/daemon/face/websocket-factory.cpp b/daemon/face/websocket-factory.cpp
index 1898993..86ca95e 100644
--- a/daemon/face/websocket-factory.cpp
+++ b/daemon/face/websocket-factory.cpp
@@ -32,6 +32,15 @@
namespace ip = boost::asio::ip;
NFD_LOG_INIT("WebSocketFactory");
+NFD_REGISTER_PROTOCOL_FACTORY(WebSocketFactory);
+
+const std::string&
+WebSocketFactory::getId()
+{
+ static std::string id("websocket");
+ return id;
+}
+
void
WebSocketFactory::processConfig(OptionalConfigSection configSection,