sunwenxu1997 / websockchat Goto Github PK
View Code? Open in Web Editor NEW基于websock实现的聊天小功能
Home Page: https://www.jianshu.com/p/6e52493c3bae
基于websock实现的聊天小功能
Home Page: https://www.jianshu.com/p/6e52493c3bae
我仿照你这个写了一个差不多的 发现一些问题 ,
1:我电脑连公司wify情况下 ,起node服务,浏览器客户端聊天是没问题的,同事我在用手机4g网打开手机浏览器,手机跟我本机ip建立不上ws链接,
2:我用手机开wify热点,电脑连手机热点后,在电脑上起node服务后,用电脑打开浏览器也一直建立不上ws连接,客户端报错
WebSocket connection to 'ws://192.168.3.243:9000/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
:服务器连接出错
:index.html:149 服务器连接关闭
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.