Skip to content

0x32a/socketio-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket.io Shoutbox with MySQL Validation

The purpouse of this demonstration is to allow users to enter messages in either a public or private chat. These messages are then added to a MySQL Database aswell as being sent off to a socket.io server; the server then checks the data being sent against the MySQL Database. A fairly easy way of preventing malicious messages being sent manually.
Deployed Live @ github.io

Dependencies:

[dependencies]
  "cors": "^2.8.5",
  "express": "^4.17.1",
  "mysql": "^2.18.1",
  "querystring": "^0.2.1",
  "socket.io": "^4.1.3"