-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change .connect() api #225
Change .connect() api #225
Conversation
…tions arg for specifying url & timeout
Let me know what you think @jost-s -- we might also want to get some feedback first. |
Sorry @mattyg for not getting back to you. I don't know what happened, I saw the PR a while ago. It looks fine to me, I'm happy with your proposal. I'll check with Holo and Components but don't think they'll object. |
heads up @jost-s I don't actually have permissions to merge this -- if you were waiting on me |
No, I've just been ill. |
It feels very weird that we have to pass a url of
new URL('ws://UNUSED')
to setup a websocket connection within a launcher environment.This PR:
.connect()
functions take an optionaloptions
object, which contains optional properties:url
anddefaultTimeout
connect
function throw an error if the url is not defined by parameter, nor by launcher envAppAgentWebsocket.connect
function, so the required parameter goes firstThis would be a breaking change.