OptionalallowOptionalcreatedefaults to the global WebSocket; inject a fake in tests, or ws's own client in Node
Optionalmaxlargest server message accepted, in bytes; defaults to 1 MB
OptionalvalidateOptional client-side command contract. Returning a string rejects with that reason.
accept
ws://to a host other than this machine; off by default