fixes ws and hub id encoding.
fixes panic when client leaves out message data.