# 演示 websocket 网关功能的 IM **Repository Path**: flycash/simple-im ## Basic Information - **Project Name**: 演示 websocket 网关功能的 IM - **Description**: 简单的 IM 主体 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 3 - **Created**: 2025-06-02 - **Last Updated**: 2025-09-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 演示 websocket 网关功能的 IM ## 启动 ```shell ## 会启动9002端口,启动前需要启动第三方依赖 mysql 和 kafka go run cmd/main.go --config=config/config.yaml ``` ## 有两个方法 1. BackendService的OnReceive 发送上行消息 2. UserService的UserInfo 获取用户信息包括token