@web3os-core/peer

PeerJS Utility




    Usage:
      peer   [options]

    To set your ID (default is UUID):
      peer id --id myfirstdevice

    Default Connection Broker:
      Kernel.get('peerjs', 'server-host') if set, or 0.peerjs.com

    Commands:
      call  [--video] [--audio]                                     Call a peer with media streams
      chat                                                          Open a text chat with a peer
      connect                                                       Connect to a peer
      id                                                                     Display your peer ID
      list                                                                   List available peers
      send  [--text] [--text-file] [--json] [--json-file]           Send a raw message
      screen                                                        Share your screen with a peer
      upload  [--file]                                              Upload a file to a peer

    Options:
      --debug                                                                Debug level ({0},1,2,3)
      --file                                                                 Path of the file to upload
      --help                                                                 Print this help message
      --id                                                                   Set your peer ID
      --json                                                                 JSON string to send
      --json-file                                                            Path to JSON file to send
      --server-host                                                          Set the peerjs broker host
      --server-key                                                           Server API key (for 0.peerjs.com)
      --server-path                                                          Set the peerjs broker path {/}
      --server-port                                                          Set the peerjs broker port {443}
      --text                                                                 Text message to send
      --text-file                                                            Path to the text file to send
      --version                                                              Print the version information
Author:
License:
  • MIT
To Do:
  • Fix receiving emojis causing BinaryPackFailure