Fixed the predicate function for identifying websockets requests and the arguments passed to the websocket handler