sls documentation says
Websockets make it possible to add support for a bi-directional communication channel between clients and servers. Connection channels are kept alive and are re-used to exchange messages back-and-forth.
That's great.
Looking at the bref documentation however, this is not evident at all. Is it possible for the $connect handler to write data somewhere -- /tmp, APCu extension etc etc -- which later handlers could read? Without websocket the answer is "no" because that's how AWS Lambda work.
You can see an example of the Dockerfile at https://bref.sh/docs/web-apps/docker.html , mine is the same as the example except it also adds Chrome and Chromedriver. Here's the handler PHP:
Testing this:
Same connection ID both times. As far as I understand -- and that's not too far -- this is probably just a "warm start" of Lambda but that is sufficient for my purposes.