Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 2.07 KB

README.md

File metadata and controls

42 lines (40 loc) · 2.07 KB

Hello Phoenix Chat

Demonstration chat app built in Phoenix 1.3.0 from Phoenix Guides.

  • Channels Sample application
    • Overview [ guide | code | demo ]
    • uncomment the “room:” channel definition [ code ]
    • define a HelloWeb.RoomChannel module [ code ]
    • Joining Channels [guide]
      • authorize clients to join topic [ code ]
      • set our room name to “room:lobby” [ code ]
      • join channel [ code ]
      • import assets/js/socket.js [ code ]
      • add containers to hold our chat messages [ code ]
      • push an event over the channel with the message body [ code ]
      • listen for new messages and append them to our messages container [ code ]
    • Handle Incoming Events [ guide | code ]