nats-io / nats.swift

Swift client for NATS, the cloud native messaging system.
Apache License 2.0
22 stars 4 forks source link

Disallow creating Client instance without initializing connection #43

Open piotrpio opened 7 months ago

piotrpio commented 7 months ago

Proposal:

  1. Make Client's init private.
  2. Create a connection using a static method: Client.connect(opts)