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

Add configurable underlying dialer and request header options #25

Merged
merged 1 commit into from
Nov 28, 2021

Conversation

andreykaipov
Copy link
Owner

Changes:

  • Adds WithDialer(x *websocket.Dialer) and WithRequestHeader(x http.Header) options. Addresses Please support setting the client name and version #23.

  • Sets the default request headers to have a user agent of goobs/${version}. Example log from OBS with this library now:

    [connect] WebSocket Connection 192.168.200.1:41272 v13 "goobs/0.8.0-dev" / 101

    Note: This necessitates maintaining the library version within the code now. So, before a release, this should be updated to remove the -dev suffix, and then bumped up in preparation for the next release.

@andreykaipov andreykaipov merged commit e229173 into master Nov 28, 2021
@andreykaipov andreykaipov deleted the feature/underlying-connections branch November 28, 2021 06:32
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.

1 participant