It would be useful if we could have logging of WebSocket traffic (including connection negotiation and teardown steps - handshakes and disconnections) to the console just like you can do with XHR requests. This would include all individual frames sent and received as well. The logging could be enabled in the same way as you can enable or disable XHR logging to the console.
<rdar://problem/9509323>
You can now view WebSocket frames in the Network panel. More detail here: http://updates.html5rocks.com/2012/05/Websocket-Frame-Inspection-now-in-Chrome-DevTools