Skip to content

jeremyko/nodeChatServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodeChatServer

https://jeremyko.github.io/2012/12/25/nodejs-tcp-chatting-server-with-qt.html

TCP chat server written in node.js (considering data fragmentation)

  • How to run server :

      npm install sqlite3
    
      export NODE_DEBUG=main,db
    
      node main.js
    
  • The database file will be created automatically if not exists.

  • Packet data format consist of the header and body.

    header: 32bit unsigned int. this means body length.
    
    body  : Message string
    

client

I wrote a QT GUI chat client.

https://github.com/jeremyko/nodeChatClient

About

tcp chat server written in node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published