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

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   ???   Download  
File: connected-users-websocket/public/???
Role: Auxiliary script
Content typex: text/plain
Description: Auxiliary script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change: Update of connected-users-websocket/public/feed.js
Date: 1 month 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) }); });