# WebsocketMSG **Repository Path**: ChunXiang-0/websocketmsg ## Basic Information - **Project Name**: WebsocketMSG - **Description**: 软件工程websocket聊天服务器 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-25 - **Last Updated**: 2024-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Markdown Cheatsheet =================== - - - - # Useage # Git clone the repository and run the following command to start the server. ```Go go run main.go ``` ## 数据结构定义 ## ```Go package Server type Message struct { Time string `json:"time"` Data Userdata `json:"data"` } type Userdata struct { Email string `json:"email"` Username string `json:"username"` Id json.Number `json:"id"` Message string `json:"message"` Shopid json.Number `json:"Shopid"` From json.Number `json:"From"` } ```