[Blaise Jarrett] has been grinding away to get the WebSocket protocol to play nicely with PIC microcontrollers ... when choosing your hardware. This project was spawned after seeing the mBed ...
Stability depends upon whatever source the PIC uses for its own clock ... plenty of ways to generate square waves from a microcontroller. Most projects use waveform generator ICs.