Updated iOS to send events when a socket message is received.