You can read more about CoAP in RFC 7252. I also did some preliminary work on SUBSCRIBE support from an early draft.
SUBSCRIBE