This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mock APNS server | |
*/ | |
var net = require('net'); | |
var HOST='127.0.0.1'; | |
var PORT=7777; | |
// Need this option so the client doesn't close | |
// the connection on sending a FIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* APNS test client | |
*/ | |
var net = require('net'); | |
var HOST = '127.0.0.1'; | |
var PORT = 7777; | |
var TOKEN_LENGTH = 64; | |
var NUM_PACKETS = 5; |