websockets server and client in scala and c++