Last active
August 29, 2015 14:05
-
-
Save lfryc/86d46eb7b19314283dcb to your computer and use it in GitHub Desktop.
Show all WebSocket.send() invocations in Chrome Dev Tools console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( send ) { | |
WebSocket.prototype.send = function( data ) { | |
console.debug( 'WebSocket.send', data ); | |
return send.call( this, data ); | |
} | |
})( WebSocket.prototype.send ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment