The specification has killConnections documented like this:
/**
* # WARNING: This method is intended for internal Thali testing only. DO NOT
* USE!
*
* This method is only intended for iOS. It's job is to terminate all incoming
* and outgoing multipeer connectivity framework browser, advertiser, MCSession
* and stream connections immediately without using the normal stop and start
* interfaces or TCP/IP level connections. The goal is to simulate what would
* happen if we switched the phone to something like airplane mode. This
* simulates what would happen if peers went out of range.
*
* This method MUST return "Not Supported" if called on Android. On Android we
* can get this functionality by using JXCore's ability to disable the local
* radios.
*
* | Error String | Description |
* |--------------|-------------|
* | Failed | Somehow the stop method couldn't do its job. Check the logs. |
* | Not Supported | This method is not support on this platform. |
*
* @private
* @returns {Promise<?Error>}
*/
However, on iOS, the implementation expects a peerIdentifier to be passed whereas the specification expects that all connections are killed.
Related to this, I renamed the function from killConnection to killConnections just so that there is a decent behavior when the function is called from the node layer.
The text was updated successfully, but these errors were encountered:
vjrantal
changed the title
killConnections does not work as specifies on iOS
killConnections does not work as specified on iOS
Mar 23, 2016
The specification has killConnections documented like this:
However, on iOS, the implementation expects a peerIdentifier to be passed whereas the specification expects that all connections are killed.
Related to this, I renamed the function from killConnection to killConnections just so that there is a decent behavior when the function is called from the node layer.
The text was updated successfully, but these errors were encountered: