This file contains 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
let app = require('express')(); | |
let http = require('http').createServer(app); | |
let io = require('socket.io')(http); | |
io.on('connection', function(socket) { | |
console.log('someone connected!') | |
socket.on('chat message', function(msg){ | |
io.emit('chat message', msg); | |
}); | |
}); |
This file contains 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
package bannobankapp; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Scanner; | |
public class Bank { | |
public String bankName; | |
Map<String, User> userMap = new HashMap<String, User>(); |