The hard part was writing a client that runs natively on the watch. The code is below, written in C for the Tizen Wearable 3.0+ OS.
It uses the Tizen HTTP library to get text from the watch and transmit it to the messaging server when a button is pressed.