概述

var io = require('socket.io')(80);
var cfg = require('./config.json');
var tw = require('node-tweet-stream')(cfg);
tw.track('socket.io');
tw.track('javascript');
tw.on('tweet', function(tweet){
  io.emit('tweet', tweet);
});

Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

实时分析

Push data to clients that gets represented as real-time counters, charts or logs.

即时消息和聊天

Socket.IO's "Hello world" is a chat app in just a few lines of code.

二进制流

Starting in 1.0, it's possible to send any blob back and forth: image, audio, video.

文档协作

Allow users to concurrently edit a document and see each other's changes.

每个人都使用

From Microsoft Office, Yammer, Zendesk, Trello... to hackathon winners and little startups.

One of the most powerful JavaScript frameworks on GitHub, and most depended-upon NPM module.

非常强大,但易于使用

Our getting started guide will show you how to create lots of amazing applications in fewer than 200 lines of code.

We're not making that up. Get started now.

保持最新的

Leave your email to hear about new releases and important security updates. Very low traffic.

加入这个社区

Real-time help? Find us on Slack Contribute code or report issues on GitHub

results matching ""

    No results matching ""