Skip to content

Test project exploring Elixir feature, unsolved problem on listen function

Notifications You must be signed in to change notification settings

zhy21345/Elixir-Tutorial-Chatroom-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatroom

A personal tutorial project on testing the functional programing feature of Elixir.

System Explained

Uses a multi-thread server system that broadcast a connected client's message to simulate a chatroom.

Pseudo Code Flow

Server.start_link

Server.accept

Client.join_chat

Client.send_username

Server.handle_client*

Server.loop

Client.send_message

Server.broadcast

Unsolved Problem

Currently unsolved issue in Server.handle_client/1, where recv/1 cannot return client sent message {:ok, data}, CaseClauseError.

However, debug message indicates that recv/1 did capture data and returned {:ok, data}, still problem exists

About

Test project exploring Elixir feature, unsolved problem on listen function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages