A text message sent late at night due to boredom brought on by insomnia. Often, such messages are random / ill-advised / have no real purpose / are nonsensical. Similar to drunk texting.
A: "Yo, what was up with those random texts you sent me at 3:00 am last night? Were you hammered or something?"
B: "Nah, I was just insomnitexting."