# socket.io-ruby-emitter **Repository Path**: mirrors_joker1007/socket.io-ruby-emitter ## Basic Information - **Project Name**: socket.io-ruby-emitter - **Description**: A Ruby implementation of socket.io-emitter. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SocketIO::Emitter [![Build Status](https://travis-ci.org/joker1007/socket.io-ruby-emitter.svg?branch=master)](https://travis-ci.org/joker1007/socket.io-ruby-emitter) A Ruby implementation of [socket.io-emitter](https://github.com/Automattic/socket.io-emitter). ## How to use ```ruby require 'socket.io-emitter' emitter = SocketIO::Emitter.new emitter.emit('time', DateTime.now.to_s) ``` ## Installation Add this line to your application's Gemfile: gem 'socket.io-emitter' And then execute: $ bundle Or install it yourself as: $ gem install socket.io-emitter ## API ### Emitter.new([opts]) The following options are allowed: - key: the name of the key to pub/sub events on as prefix (`socket.io`) - redis: the Instance of [Redis](https://github.com/redis/redis-rb) (`redis://127.0.0.1:6379/0`) ### Emitter#to(room) Specifies a specific room that you want to emit to. ### Emitter#in(room) _Alias of `Emitter#to`._ ### Emitter#of(namespace) Specifies a specific namespace that you want to emit to. ## License MIT