Add method to send a websocket ping

Quite useful to detect broken connections. :)