-
Notifications
You must be signed in to change notification settings - Fork 17
Add and example to consume the WebRtcTCPRelayDetectedEvent #43
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
base: main
Are you sure you want to change the base?
Add and example to consume the WebRtcTCPRelayDetectedEvent #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, left some feedback
}, | ||
output: { | ||
filename: '[name].js', | ||
library: 'spstypescriptexample', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different output name for the library here perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the library name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this is meant as an 'example' -- can we get some detailed commenting on this file and any others telling us what each thing is and how it is used/meant to be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some more commenting
Just a thought about this PR. Perhaps we could make use of the environment variables on the typescript example to build it with or without the Interested to hear options |
library/src/SPSApplication.ts
Outdated
@@ -61,7 +61,7 @@ export class SPSApplication extends Application { | |||
this.stream.setSignallingUrlBuilder(() => { | |||
|
|||
// if we have overriden the signalling server URL with a .env file use it here | |||
if (WEBSOCKET_URL) { | |||
if (WEBSOCKET_URL != "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail in prod where WEBSOCKET_URL
is being set as undefined
:
plugins: [
new webpack.DefinePlugin({
WEBSOCKET_URL: undefined
}),
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has been moved to #44 PR
…ntend into F_WebRTC-TCP-Stream
…ntend into F_WebRTC-TCP-Stream
Relevant components:
Problem statement:
What problem does this PR address?
Solution
How does this PR solve the problem?
Documentation
If you added a new feature or changed an existing feature please add some documentation here.
Or better yet, link to the relevant
/Docs
update in your PR.Test Plan and Compatibility
What steps have you taken to ensure this PR maintains compataibility with the existing functionality?
Or better yet, link to the unit tests that accompany this PR.