A lightweight top level api in c++ for web sockets