Issue #24 - handle empty JSON buffer as "ping"
Merge branch 'master' into register-channelid