Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.