Working protocol between nodejs client and cpp server.