Add: Ensure a uniqe token on connect
Fix: Use struct pack instead of to_bytes for better python compatability