nats-io / nats.swift

Swift client for NATS, the cloud native messaging system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disallow creating Client instance without initializing connection

piotrpio opened this issue · comments

Proposal:

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