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

store app data by shm transport when shm segment is created #16

Merged
merged 6 commits into from
Sep 10, 2021

Conversation

gitamirp
Copy link

@gitamirp gitamirp commented Sep 5, 2021

Pass the appData parameter which is provided by xcode api controller through pvc-packets all the way to the shm transport and into the shm when the shm is created. The appData is a json formatter as a string

@gitamirp gitamirp requested a review from mariat-atg September 5, 2021 21:07
@@ -371,12 +371,12 @@ class Router extends EnhancedEventEmitter_1.EnhancedEventEmitter {
* @async
* @returns {ShmTransport}
*/
async createShmTransport({ listenIp, shm, log, appData = {} }) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave appData an object for consistency with other similar transport creating APIs. We assume that it is an object and it may contain information about callId, peerId, streamName and mirrorId. I am testing the branch where I actually pick that data in shm and add into logs.
If you are passing a special string for shm apps it would be better to add it under shm object (the 2nd param in this function).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, will do

@mariat-atg mariat-atg merged commit d8cc29b into v3-lively Sep 10, 2021
@gitamirp gitamirp deleted the shm_app_data branch September 10, 2021 14:09
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