danielbasedow 4ac4f86bf5 Add ping to WebSocket
Summary:
Idle WebSocket connections get reset after a few minutes of inactivity. To prevent this, most WebSocket implementations offer sending special ping messages. This PR adds a method `sendPing()` to  WebSocket. Ping payloads are not supported.

Manual testing can be done by adding `connection.on('ping', _ => console.log('Received ping'));` to a ws connection or using a packet sniffer while sending pings.
Closes https://github.com/facebook/react-native/pull/8505

Differential Revision: D3516260

Pulled By: dmmiller

fbshipit-source-id: cfebf5899188ae53254d5be6b666a9075e0eed89
2016-07-05 05:58:23 -07:00
..
2016-06-08 00:13:30 -07:00
2016-07-05 01:13:51 -07:00
2016-07-01 13:13:32 -07:00
2016-06-16 14:44:18 -07:00
2016-06-13 14:28:25 -07:00
2016-06-24 08:43:36 -07:00
2016-07-03 14:43:20 -07:00
2016-07-05 05:58:23 -07:00