
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
This gem adds MQTT (Message Queue Telemetry Transport) protocol support to EventMachine, an event-processing library for Ruby.
You may get the latest stable version from rubygems.org:
$ gem install em-mqtt
It depends upon the mqtt gem to perform packet parsing and serialising.
require 'rubygems'
require 'em/mqtt'
# Publish example
EventMachine.run do
c = EventMachine::MQTT::ClientConnection.connect('test.mosquitto.org')
EventMachine::PeriodicTimer.new(1.0) do
puts "-- Publishing time"
c.publish('test', "The time is #{Time.now}")
end
end
# Subscribe example
EventMachine.run do
EventMachine::MQTT::ClientConnection.connect('test.mosquitto.org') do |c|
c.subscribe('test')
c.receive_callback do |message|
p message
end
end
end
The em-mqtt gem is licensed under the terms of the MIT license. See the file LICENSE for details.
FAQs
Unknown package
We found that em-mqtt 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
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.