vue-qq icon indicating copy to clipboard operation
vue-qq copied to clipboard

🎨 Vue family bucket with socket.io and express/koa2 , create a web version of mobile QQ, supporting real-time group chat, real-time private chat, special care, shielding chat, smart IP geographic l...

Results 48 vue-qq issues
Sort by recently updated
recently updated
newest added

Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2. Commits See full diff in compare view Maintainer changes This version was pushed to npm by oss-bot, a new releaser for y18n since your...

dependencies

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.4. Commits 43ac7f2 6.5.4 f4bc72b package: bump deps 441b742 ec: validate that a point before deriving keys e71b2d9 lib: relint using eslint 8421a01 build(deps): bump...

dependencies

Bumps [socket.io](https://github.com/socketio/socket.io) from 2.3.0 to 2.4.0. Release notes Sourced from socket.io's releases. 2.4.0 Related blog post: https://socket.io/blog/socket-io-2-4-0/ Features (from Engine.IO) add support for all cookie options (19cc582) disable perMessageDeflate by...

dependencies

Bumps [axios](https://github.com/axios/axios) from 0.19.0 to 0.21.1. Release notes Sourced from axios's releases. v0.21.1 0.21.1 (December 21, 2020) Fixes and Functionality: Hotfix: Prevent SSRF (#3410) Protocol not parsed when setting proxy...

dependencies

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...

dependencies

lnmp安装:https://lnmp.org/install.html **一、安装nginx** 注意先apt-get update一下 1.安装pcre(rewrite 模块) sudo apt install libpcre3 libpcre3-dev 2.安装 openssl(ssl 功能) sudo apt-get intall openssl libssl-dev 3.安装 zlib(gzip模块) sudo apt-get install zlib1g-dev 4.下载nginx源码包 wget http://nginx.org/download/nginx-1.19.5.tar.gz 5.解压该tar包 tar...

Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1. Changelog Sourced from http-proxy's changelog. v1.18.1 - 2020-05-17 Merged Skip sending the proxyReq event when the expect header is present [#1447](https://github.com/http-party/node-http-proxy/issues/1447) Remove node6 support,...

dependencies

我想在开发环境用的是: http://47.107.44.81:8080/api/ 在生产环境用得是:http://47.107.44.81/api/ 能不能详细说一下要怎么做?打包后放自己服务器上,这个8080端口不加,生产环境接口都是404,页面可以打开。开发环境加上8080是正常的。

**一、給指定的用户发送消息** 为了给指定的用户发送消息,我们需要建立一张hash表,键为用户的id,值为该用户连接时生成的socketid。并把这张表以json的格式存储在服务端的users.json文件里。每次登陆的时候就把用户的id和socketid存储到服务器端。具体怎么实现可以参考问题二里的服务端代码。 **二、用户手动刷新或者重新打开浏览器,原来的socketid会失效** 如果用户手动刷新或者重新打开浏览器(都可视为刷新),那么服务器端保存的该用户对应的socketid会失效,因为刷新会导致connection,会生成新的socketid。这样导致的问题就是服务端无法继续给指定的用户推送消息了(socketid失效)。 **解决方案如下:** 客户端:每次连接服务端的时候就emit用户的id。当然得先判断下用户是否已经登陆了,没有登陆的话,自然无法获取用户的id,无法emit,这种情况就只能等用户登陆了再emit用户的id。 **客户端需要在两个地方emit用户的id:** (1)登录时(emit用户id) ``` //登陆后的回调 callback({code,data,message}){ if(code==1){ socket.emit('login',data.loginStatus.userId) // emit login事件,传递用户id this.$store.commit('SET_LOGIN',data) //设置store状态 this.$router.push('message') }else{ this.$store.dispatch('setShowWarn',message) } } ``` (2)连接时(需判断是否已经登陆) ``` const socket = io.connect('http://localhost:3000/')...