npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chatv

v0.0.2

Published

初学node.js和html5的相关技术(node方面大部分都是在cnodejs.org上面看技术文章学到的),想着学以致用,于是基于node.js和websocket来做了一个多人聊天室:

Downloads

8

Readme

初学node.js和html5的相关技术(node方面大部分都是在cnodejs.org上面看技术文章学到的),想着学以致用,于是基于node.js和websocket来做了一个多人聊天室:

一、功能简介 1、用户随意输入一个昵称即可登录 2、登录成功后

  1. 对正在登录用户来说,罗列所有在线用户列表,罗列最近的历史聊天记录
  2. 对已登录的用户来说,通知有新用户进入房间,更新在线用户列表 3、退出登录
  3. 目前未支持直接退出,只能通过关闭网页来退出...
  4. 当有用户退出,其他所有在线用户会收到信息,通知又用户退出房间,同时更新在线用户列表 4、聊天
  5. 聊天就是广播,把信息广播给所有连接在线的用户 5、一些出错处理
  6. 暂时简单处理了系统逻辑错误、网络出错等特殊情况的出错提示

二、参考文章 1、websocket与node.js的完美结合( http://cnodejs.org/blog/?p=273 ) 。从这里了解到node-websocket-server 这个框架的,一个node.js和websocket通讯的框架,本程序中有使用到。 2、nodejs: 真正的一份代码,到处运行( http://cnodejs.org/blog/?p=702 ) 。从这里了解到如何在svr和client中同时复用部分代码,当然,本程序也模仿了这里面的技术来做,例如我源码里面svr/chatLib.js其实是同时被svr和client公用的。

三、注意 1.本程序关闭消息就会消失,不会保存在任何介质。 四、运行

这是websocket 聊天的一个web 界面 运行chatv 并 在浏览器中访问 http://127.0.0.1:8080/web/chatroom.html

原作者微博交流: http://weibo.com/zhengll 发布者:今日头条 >> 墨灵科普