Add your stream handler to the list of stream handlers in the protocol options:
{ok, Pid} = cowboy:start_clear(ListenerName,
[{port, Port}],
#{
env => #{dispatch => Dispatch},
stream_handlers => [my_stream_h, cowboy_compress_h, cowboy_stream_h]