Skip to content
/ testws Public

test WebSocket

Notifications You must be signed in to change notification settings

benizz0/testws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FOSSA Status

test Websocket chat with bdd authentification

FOSSA Status

requierement :

npm install --save ws
npm install --save mysql

db config (mysql) :


+----------------+
| Tables_in_test |
+----------------+
| chat           |
| user           |
+----------------+
table 'chat' :
+---------+---------+------+-----+---------+----------------+
| Field   | Type    | Null | Key | Default | Extra          |
+---------+---------+------+-----+---------+----------------+
| ID      | int(11) | NO   | PRI | NULL    | auto_increment |
| user    | text    | YES  |     | NULL    |                |
| Message | text    | NO   |     | NULL    |                |
+---------+---------+------+-----+---------+----------------+
table 'user' : 
+-------+---------+------+-----+---------+----------------+
| Field | Type    | Null | Key | Default | Extra          |
+-------+---------+------+-----+---------+----------------+
| ID    | int(11) | NO   | PRI | NULL    | auto_increment |
| user  | text    | NO   |     | NULL    |                |
| pass  | text    | NO   |     | NULL    |                |
+-------+---------+------+-----+---------+----------------+

License

FOSSA Status