{"id":17071956,"url":"https://github.com/tonybase/netty-chat","last_synced_at":"2025-04-04T22:07:05.562Z","repository":{"id":27494064,"uuid":"30974252","full_name":"tonybase/netty-chat","owner":"tonybase","description":"使用Netty实现IMServer，支持Tcp和WebSocket实现。","archived":false,"fork":false,"pushed_at":"2016-10-17T06:59:48.000Z","size":625,"stargazers_count":480,"open_issues_count":4,"forks_count":311,"subscribers_count":77,"default_branch":"master","last_synced_at":"2025-03-28T21:06:53.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"docker/docker-ce","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tonybase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-18T16:32:32.000Z","updated_at":"2025-02-06T03:05:02.000Z","dependencies_parsed_at":"2022-07-07T20:43:18.798Z","dependency_job_id":null,"html_url":"https://github.com/tonybase/netty-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonybase%2Fnetty-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonybase%2Fnetty-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonybase%2Fnetty-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonybase%2Fnetty-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonybase","download_url":"https://codeload.github.com/tonybase/netty-chat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256112,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T11:38:02.239Z","updated_at":"2025-04-04T22:07:05.541Z","avatar_url":"https://github.com/tonybase.png","language":"Java","funding_links":[],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"readme":"# netty-chat\n\n### Protocol:\n\n| PacketLen  | Header  | Actual Content |\n| :----: |:-------:| :-------------:|\n| 4byte  | 12byte   |   data  |\n\n###  Packet:\n- PacketLen\n- HeaderLen\n- Version\n- Operation\n- SeqId\n- Body\n\n### Architecture:\n\n\u003cimg src=\"https://raw.githubusercontent.com/im-qq/netty-chat/master/docs/architecture.png\" width=\"500\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/im-qq/netty-chat/master/docs/proto.png\" width=\"800\"\u003e\n\n### Operation\n\n    AuthOperation -\u003e decode\u003cAuthToken\u003e -\u003e AuthService\n    MessageOperation -\u003e decode\u003cMessage\u003e -\u003e MessageService\n\n### MessageQueue\n\n    MQMessage\n    MQProducer\n    MQConsumer\n    MQMessageListener\n\n### Run\n\n    mvn install\n    logic: mvn spring-boot:run\n    comet: mvn spring-boot:run\n\n### Test\n\n    Tcp: comet -\u003e test -\u003e ChatClient\n    WebSocket: comet -\u003e test -\u003e websocket -\u003e demo.html\n    \n### License\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n       http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonybase%2Fnetty-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonybase%2Fnetty-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonybase%2Fnetty-chat/lists"}