# gin-websocket-example **Repository Path**: zcoder/gin-websocket-example ## Basic Information - **Project Name**: gin-websocket-example - **Description**: 一个websocket例子,基于gorilla/websocket和gin框架 - **Primary Language**: Go - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-06-07 - **Last Updated**: 2022-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gin-websocket-example #### 介绍 一个websocket的简单聊天室例子,基于gorilla/websocket和gin框架 #### 获取 ``` $ git clone git@gitee.com:zcoder/gin-websocket-example.git ``` #### 如何运行 ##### 必须 - Redis ##### 配置 你应该修改 `conf/app.ini` 配置文件 ``` [redis] Host = 127.0.0.1:6379 Password = MaxIdle = 0 MaxActive = 0 IdleTimeout = 200 ... ``` ##### 运行 ``` $ cd gin-websocket-example $ go run ws.go ``` ## 特性 - RESTful API - App configurable - Gin - Websocket - Redis