Tuesday, 15 April 2014

Integrate node.js chat with smf forum -



Integrate node.js chat with smf forum -

i'm making chat node.js integrate smf forum. in chat database want insert objects this:

{ "userid" : "smf_id", "nick" : "smf_username", "shout" : "testing", "date" : 1403554769, "_id" : objectid("53a88bd134ac7be005000001") }

but can open console , trigger emit event info want. can forge userid , nickname. there way prevent this?

your chat server should not blindly add together entries database straight client.

you should have client send subset of info contained in entry (e.g. send "shout" attribute), , have server infer rest of info connection-specific , global environment.

node.js chat forum smf

No comments:

Post a Comment