go开发的web聊天室
2015-12-19 20:50
633 查看
下载地址:https://github.com/e421083458/gochat
go开发的web聊天室
本实例基于websocket和jQuery开发。 websocket jQuery本实例特点如下: 1. 支持浏览器客户端和命令行客户端两种方式。 2. 支持私聊。运行实例
实例运行运行在go环境中,安装go环境请参照(http://golang.org/doc/install)启动服务器。$ go get github.com/gorilla/websocket $ git clone git@github.com:e421083458/gochat.git $ cd server $ go run *.go运行命令行客户端
$ cd client $ go run *.go运行浏览器客户端 http://127.0.0.1:8080/登陆聊天室输入:
username=niuyufu&token=123456跟某人私聊输入:
@dengyanlu 这是私聊信息
效果如下:
相关文章推荐
- Google搜索语法
- django 快速搭建blog
- Go 语言简介(下)— 特性
- Go 语言简介(上)— 语法
- How Google Finds Your Needle in the Web's Haystack
- 64bit ubuntu 14 04 LTS 安装 google chrome
- mogodb优化
- 开源项目ListViewAnimations的简单使用(实现GoogleCards效果)
- POJ-1179 Polygon (动态规划)
- POJ-1179 Polygon (动态规划)
- STL中的algorithm
- Django入门学习 (一)
- Django中,图片显示问题--Django中静态文件处理方法指南
- Xcode 5集成GoogleTest Frame
- HDOJ  4341  Gold miner[条件背包]
- HDOJ 1847   Good Luck in CET-4 E…
- django-uuslug: 方便的将中文转化成拼音 slug 的工具
- GPS坐标互转:WGS-84(GPS)、GCJ-02(Google地图)、BD-09(百度地图)
- Mongo中MapReduce的使用例子
- 对话 Jessica Hamrick:和 Django 的情缘是我前行的动力