Giter VIP home page Giter VIP logo

chatroom's Introduction

chatroom

websocket实现的简单聊天室,一个是php原生websocket+vue实现的聊天室,另一个是通过swoole扩展实现的聊天室,供大家学习参考。

待实现功能

  1. (Notification问题)win7多条消息同时接收没问题,win10多条消息时有些许延迟待解决。
  2. 设置服务器60分钟无连接自动关闭服务。
  3. 由于前一条,需实现心跳检测,保证打开页面时不操作不会断开连接。

预览

说明

需放行9527端口

打开Notification

内网访问可监听127.0.0.1:9527,公网访问需监听0.0.0.0:9527端口

使用

1.运行,进入文件目录,输入以下命令。
php websocket.php
2.访问对应的url即可
3.支持多个连接,具备私聊功能。

chatroom's People

Contributors

pandaoh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.