new WifiBasedNativeMock(platform, router)
To use this mock save the current global object Mobile (if it exists) and replace it with this object. In general this object won't exist on the desktop.
If we are simulating iOS then we MUST add the /ConnectToMeForMock and /IConnectedMock endpoints as described above to the router object.
Parameters:
| Name | Type | Description |
|---|---|---|
platform |
platformChoice | |
router |
Object | This is the express router being used up in the stack. We need it here so we can add a router to simulate the iOS case where we need to let the other peer know we want a connection. |