Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Evented is a simple event-driven IO gem written in pure Ruby. Here's a example of an evented server that waits for connections and send a response.
require 'evented'
server = Server.new('0.0.0.0', 8080)
server.on(:accept) do |stream| # callback when accept a new connection
response = "Lorem ipsum"
stream.send(response) do # callback after send
stream.close
end
end
server.start
It's designed for take advantages of the event-driven flow, when it's necessary. For example, when you want to send a response to client when it sends you a message, using callbacks, like:
require 'evented'
server = Server.new('0.0.0.0', 8081) # echo server
server.on(:accept) do |stream|
stream.on(:data) do |data|
stream.send(data) do
stream.close
end
end
end
server.start
FAQs
Unknown package
We found that evented 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.