https://github.com/oct16/vue-chatroom
A Socket.io Chatroom Demo
https://github.com/oct16/vue-chatroom
Last synced: 9 months ago
JSON representation
A Socket.io Chatroom Demo
- Host: GitHub
- URL: https://github.com/oct16/vue-chatroom
- Owner: oct16
- License: mit
- Created: 2016-06-14T17:59:10.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-18T05:17:38.000Z (almost 10 years ago)
- Last Synced: 2025-04-30T01:07:08.048Z (about 1 year ago)
- Language: CSS
- Homepage:
- Size: 109 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-chatroom

公司最近计划接入云信开发Web版聊天和app打通,因为云信也是基于socket的,所以在此之前先研究一下webSocket的特性。
嗯,然后就做了一个demo,实现了单聊和群聊的功能
[github: vue-chatroom](https://github.com/oct16/vue-chatroom)
[demo: vue-chatroom](https://oct16im.duapp.com)
额,代码是work的,但由于是部署在BAE并上不支持直接走ws导致握手失败了,不过好在socket.io会在失败后自动降级为http请求,有钱还是换成阿里云,百度这种真是便宜没好货。
# Usage
```
cd vue-chatroom
npm install
npm run start
open http://localhost:3003
````