Gateway
class Gateway extends SslSocket
Constants
SEND_INTERVAL |
Minimum interval between sending two messages in microseconds (Internal use)
|
READ_TIMEOUT |
Minimum interval to wait for a response (Internal use)
|
ERROR_RESPONSE_COMMAND |
Command APNS sends back on error (Internal use)
|
ERROR_RESPONSE_SIZE |
Size of the APNS error response (Internal use)
|
MESSAGE_ENVELOPE_STORE_PREFIX |
Prefix used to save message envelopes to the store (Internal use)
|
Methods
Details
at line 32
__construct(Certificate $certificate)
Construct Gateway
in SslSocket at line 48
setLogger(LoggerInterface $logger)
Sets a logger instance on the object
in SslSocket at line 58
Certificate
getCertificate()
Get the certificate used with this connection
at line 48
MessageEnvelope
queue(Message $message)
Queue a message for sending
at line 71
int
getQueueLength()
Count of all queued messages
at line 79
flush()
Send all queued messages