"Mr. Weller
communicated this secret with great glee, and winked so
indefatigably after doing so, that Sam began to think he must have
got the TIC DOLOUREUX in his right eyelid."

From the Internet:
TRIGEMINAL NEURALGIA

As you probably know, trigeminal neuralgia commonly is called "tic douloureux" or just "tic". When severe, it is the most excruciating pain known to man. This pain most frequently involves the lower lip and lower teeth or the upper lip and cheek, but it also may involve the nose and the area above the eye.

This is a truly dreadful affliction. The slightest touch to the trigger area can cause very severe pain. It is nothing like Mr. Weller's winking or whatever Dickens meant.