Giter VIP home page Giter VIP logo

blogchat's Introduction

A Simple Chat System

It's a simple chat system, can be inserted to anywhere.

Demo: http://119.23.13.9:29231/

Usage

git clone https://github.com/barretlee/blogChat.git
cd blogChat;
npm i;
node index;

Screenshot

  • Register Name:

Register Name

  • Chat:

Chat

Changelog

  • execute code at client
  • limit msg length
  • whitelist of hostname
  • detect robot at server
  • detect robot at client
  • support custom username
  • support private chat
  • welcome new user

LICENSE

MIT

Thanks for socket.io.

blogchat's People

Contributors

barretlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blogchat's Issues

Help

How to fix it for my blog chat

群聊Enter发送消息功能缺失

胡子哥您好!偶然间在您博客逛了一下,玩了一下群聊功能,感觉加上Enter发送消息会更好一点,不然很不习惯...

小胡子哥,你好,我想请教几个关于websocket的问题

小胡子哥,你好,我想请教几个关于websocket的问题,无奈找不到能直接联系你的方式,看到你在github提交的代码比较多,所以你应该能看到我的留言,可以加下我的qq或者微信吗,我想请教几个问题。谢谢。困扰好几天了。
qq 1113484046
微信 15152116961
谢谢谢谢

博客聊天功能

博客聊天功能是不是有很多机器人?感觉可以加一个机器人可以恢复所有人的回复。

不知这是不是个问题

小胡子哥你好
image
在初始化的闭合状态
当用户触发 chatroom-tribes li的点击事件会激活文本输入框聚焦状态
$('.chatroom textarea').focus();
这时就没法展开聊天窗口了
同样在收起后也有这样问题O(∩_∩)O~

反馈

如果能所有人一起聊就好了,虽然可能不是很好,让浏览器的压力过大,不过我相信是可以做到的嚎~

写代码写傻了吧?

image

if(a > 100){
    return;
}

if(a > 500){
    return;
}

请问这样的代码, 什么时候能执行到 > 500 的那个 if 里面?

另外 > 100return, 且每条消息都进行累计, 这是要实现一个用户最多只能发送100条消息吗?

F12 - Console to execute Javascript.

function send() {
    document.querySelector('.chatroom-input').value = new Date();
    document.querySelector('.chatroom-send-btn').click();
}

setInterval(send, 5000)

Paste into console, then enter.

So need request / s limit.

error

Missing error handler on socket.
TypeError: Object function Object() { [native code] } has no method 'assign'

什么鬼

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.