Skip to content

lysek/chat-socket-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat demo s RethinkDB a Socket.IO

Spustit RethinkDB a vytvorit databazi chat tabulku a v ni tabulku messages.

Spustit backend pomoci prikazu npm run start a v prohlizeci otevrit http://localhost:3000.

API nad Socket.IO

  • chat.message - emituje klient a server zapise zpravu do DB, server ocekava payload jako JSON {"from": "...", "message": "..."}.
  • chat.addMessage - emituje server s podobnym JSONem a klient zobrazi zpravu.

About

Chat se Socket.IO a RethinkDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published