Created
October 29, 2015 22:48
-
-
Save bcomnes/ff2efe96d6d81c73b156 to your computer and use it in GitHub Desktop.
reload on socket.io event
This file contains hidden or 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
| var ioClient = require('socket.io-client') | |
| var socket = ioClient() | |
| socket.on('refresh', function(data) { | |
| window.location.reload(); | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment