File: connected-users-websocket/public/feed.js

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   connected-users-websocket/public/feed.js   Download  
File: connected-users-websocket/public/feed.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 271 bytes
 

Contents

Class file image Download
function msgReceived(msg){ $clientCounter.html(msg); } $(document).ready(function () { $clientCounter = $("#client_count") var socket = io.connect("http://localhost:8080"); socket.on('message', function(msg){ console.log(msg); msgReceived(msg) }); });