I'm new to the world of Socket io, and was wondering if their are security issues with this:
I'm also using Coffeescript.
Server.
io.sockets.emit('UserInfo', {player1: AllData1, player2: AllData2})
AllData1 is basically player1's sensitive information, and AllData2 is player2's sensitive information.
Client.
myName = 'snugglePuff'
socket.on('UserInfo', (data) ->
if data.player1.name = myName
alert(data.player1.secret)
)
So my question would be: Seeing as the server is broadcasting to every socket that is connected, would "player2" somehow using their browser be able to see data.player1.secret?