Implement "knock" feature as per MSC2403. Contributed by Sorunome.