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 #17

Open
lc-1010 opened this issue Jul 25, 2023 · 0 comments
Open

聊天室 chatroom #17

lc-1010 opened this issue Jul 25, 2023 · 0 comments

Comments

@lc-1010
Copy link
Owner

lc-1010 commented Jul 25, 2023

WebSocket 以及聊天室

lc-1010 added a commit that referenced this issue Jul 25, 2023
- Refactor code and add new functionality
- Generate Go code for Protocol Buffer messages

This commit adds functionality to read a Protocol Buffer message from standard input, generate Go code for each message, and write the generated code to standard output.

The generated code includes a Go struct for each message, with fields corresponding to the fields in the Protocol Buffer message.

This commit also includes the necessary command-line parameters and options for generating the code.

#16 #17
lc-1010 added a commit that referenced this issue Jul 26, 2023
- add websocket chatroom demo

#17
lc-1010 added a commit that referenced this issue Jul 27, 2023
- add gobwas/ws package example
#17
lc-1010 added a commit that referenced this issue Jul 28, 2023
- Enable user input capture and message sending using `bufio.NewScanner(os.Stdin)`
- Enhance broadcaster
- Add `getNew` function returning emojis name
- Implement WebSocket version similar to TCP

#17
lc-1010 added a commit that referenced this issue Jul 28, 2023
- Add support for logout signal and quit command to gracefully exit
- Improve logging by filtering out sensitive message using a map

#17
lc-1010 added a commit that referenced this issue Jul 29, 2023
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