Add pattern matching on the WS message kind