Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Created September 4, 2020 10:54
Show Gist options
  • Save anandtripathi5/0a9e8b1782a9150d3048fa72706d951e to your computer and use it in GitHub Desktop.
Save anandtripathi5/0a9e8b1782a9150d3048fa72706d951e to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.8/socket.io.min.js"></script>
<script type="text/javascript" charset="utf-8">
const socket = io('http://localhost:5000')
socket.on('connect', () => {
console.log("socket connected");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment