add publish method
check JSON
check message length
clear active clients