Run background service on cloudflare worker

Is it possible to run a code that would run in the background to retrieve all the tls handshake between cloudflare and the client? or does the worker service allow me to do this?