
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
socket.io-client-simple
Advanced tools
A simple ruby client for Node.js's Socket.IO v1.4.x, Supports only WebSocket.
gem install
% gem install socket.io-client-simple # latest version, supports Socket.IO v1.4.x
or use Gemfile
with Bundler
gem 'socket.io-client-simple', '< 1.0' # for Socket.IO v0.9.x
gem 'socket.io-client-simple' # for Socket.IO v1.4.x
require 'rubygems'
require 'socket.io-client-simple'
socket = SocketIO::Client::Simple.connect 'http://localhost:3000'
## connect with parameter
socket = SocketIO::Client::Simple.connect 'http://localhost:3000', :foo => "bar"
socket.on :connect do
puts "connect!!!"
end
socket.on :disconnect do
puts "disconnected!!"
end
socket.on :chat do |data|
puts "> " + data['msg']
end
socket.on :error do |err|
p err
end
puts "please input and press Enter key"
loop do
msg = STDIN.gets.strip
next if msg.empty?
socket.emit :chat, {:msg => msg, :at => Time.now}
end
sample.rb works with samples/chat_server.coffee.
% npm install
% coffee samples/chat_server.coffee
=> chat server start at localhost:3000
% ruby samples/sample.rb
% gem install bundler
% bundle install
% npm install
% bundle exec rake test
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that socket.io-client-simple demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.