temp commit. Consider whether we could use libwebsockets library since it is released under LGPL2.1 .