
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.