Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatroom examples #9

Open
3 tasks
bennn opened this issue Jun 11, 2024 · 0 comments
Open
3 tasks

Chatroom examples #9

bennn opened this issue Jun 11, 2024 · 0 comments

Comments

@bennn
Copy link
Member

bennn commented Jun 11, 2024

Inspiration:
https://www2.ccs.neu.edu/racket/pubs/cgjf-jfp20.pdf
https://programming-journal.org/2024/8/8/
(artifact) https://zenodo.org/records/10003838

Outline:

User joins server, sends their name + room-to-join
Server confirms, sends back list of members
User sends private message
User receives private message

Todo

  • implement basic outline with only User + Server
  • add a User, so 2 people interact through Server
  • let members list arrive out of order with private messages

First-draft code, 1 User 1 Server

User.gen_id("tom") ~> Server.(new_id)
User.gen_room("chat1") ~> Server.(new_room)
Server.do_join() ~> User.(room_members) # use new_id + new_room to register the user and send list of members
User.gen_message() ~> Server.(new_msg) # send "hello world" or something
# Server propagates message to other users?
Server.gen_message() ~> User.(new_msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant