updated library so that it is backward compatible while keeping the connect and onCustomMessage updates.