Skip to content

Instantly share code, notes, and snippets.

@lfryc
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfryc/86d46eb7b19314283dcb to your computer and use it in GitHub Desktop.
Save lfryc/86d46eb7b19314283dcb to your computer and use it in GitHub Desktop.
Show all WebSocket.send() invocations in Chrome Dev Tools console
(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