Skip to content

Using the Collaboration Broker Client Example

The SDK provides a sample command line pre-session client called the Collaboration Broker Client Example, which calls the included broker client libraries and enables you to join a PCoIP collaboration session. The Collaboration Broker Client API Example demonstrates the success path for joining a PCoIP collaboration session. Collaborators can join PCoIP sessions after they receive invitation links and codes from session owners. Session owners generate invitation links and codes on remote PCoIP agent machines.

Do not Use the Broker Client Example in Production

The Collaboration Broker Client is provided as an example only, and should not be used in production. The client does not have thorough error handling and does not validate or sanitize user input.

The sample Collaboration Broker Client API is located here: /PCoIPSoftClientSDK/Examples/broker_client_example/bin. The following Collaboration Broker Client files are available at this location:

  • broker_client_example_collaborator.exe, which is the sample command-line client
  • login_info_collaborator.txt, which ontains authentication information used by the client

About the login_info_collaborator.txt File

The Collaborator Broker Client API example uses a local text file to provide session input values. The following is a sample login_info_collaborator.txt file:

pcoip://10.11.12.13/connect?data=eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTY3MDYwMTQ1MSwiaWF0IjoxNjcwNjAxNDUxfQ.z8w07IcV5eYbqbYGdjscMVSWFUB4tbU9WrV_V4GWyDU collaborator 123435

In this example:

  • The invitation URI is pcoip://10.11.12.13/connect?data=eyJhbGciOiJIUzI1NiJ9.eyJSb2xlIjoiQWRtaW4iLCJJc3N1ZXIiOiJJc3N1ZXIiLCJVc2VybmFtZSI6IkphdmFJblVzZSIsImV4cCI6MTY3MDYwMTQ1MSwiaWF0IjoxNjcwNjAxNDUxfQ.z8w07IcV5eYbqbYGdjscMVSWFUB4tbU9WrV_V4GWyDU
  • The Collaborator Name is `collaborator`.
  • The Invite Code is 123435.

Collaboration Broker Client Remote Sessions

The remote sessions established by broker_client_example_collaborator.exe are the same as collaboration sessions established using the Anyware Software Client, except that the input values are provided by the login_info_collaborator.txt file instead of the PCoIP Client.