[#1295] Make sure retain(..) returns the correct WebSocketFrame type