Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including SecChat with all npm packages installed. Try it out:

SecChat lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("SecChat/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

SecChat v0.0.1

目前会丢失消息 也没有数据库。但是,安全。

##经过少许修改后 可被部署在百度云BAE
修改要点: listen端口号写18080 需要购买附加的port服务 网页端js的io的地址指向购买的port,服务器端仍然使用18080 (这样websocket才会内外互通)

##原本是一个socket.io测试项目 express-generator生成的express项目结构,添加了less handlehars支持。 的教程


##socket.io学习指南 socket.io的文档和engine.io的文档 一定要 都看!
socket.io官网文档 github文档 github文档

####增加了CryptoJS 传输中使用AES加密。

####TODO 昵称显示/背景色颜色区分 方便标识同一个用户
localStorage 可查看之前的几条记录
消息队列 防止丢失信息


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free