Skip to content
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

Allow user defined websocket URLs #20

Merged

Conversation

matthiggins
Copy link
Contributor

@matthiggins matthiggins commented Nov 29, 2023

This PR allows for custom websocket urls in the WebsocketResource. This is a non-breaking change.

  • Define on instantiation : $socket = new WebsocketResource($topic, $apiKey, $socketUrl)
  • Define on instance : $socket->setSocketUrl($socketUrl)

@justinpolygon
Copy link
Contributor

LGTM -- thanks for sending this in. At some point we'll probably refactor this to have a pre-defined set but this works for now.

@justinpolygon justinpolygon merged commit 3024cde into polygon-io:master Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants