embedded websocket application by sinatra into c binary