mirror of
https://github.com/cheveguerra/whatsapp-api-tutorial.git
synced 2026-04-17 19:36:59 +00:00
Fix port for heroku
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.1/socket.io.min.js" integrity="sha512-/WwtKR6NnHomLo0O4w9QKc1INTPEJs7ko6u2aBTA1paPldhPl8LtXsi7a35iEZ69+9P5dcgVNESG8hrP4Y2t3w==" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var socket = io.connect('http://localhost:8000', { path: '/socket.io' });
|
||||
var socket = io();
|
||||
|
||||
socket.on('message', function(msg) {
|
||||
$('.logs').append($('<li>').text(msg));
|
||||
|
||||
Reference in New Issue
Block a user