
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Tuppari is an experimental implementation of unbreakable message broadcasting system using WebSocket and Amazon Web Services by @hakobera.
https://github.com/hakobera/tuppari
https://github.com/hakobera/tuppari-servers
You can easily build a Tuppari application by just using Ruby API. Let's get started now!
Prepare Gemfile as follows.
source 'https://rubygems.org'
gem 'tuppari'
And then invoke bundle console
to try Tuppari.
require 'tuppari'
Tuppari.create_account(YOUR_ID, PASSWORD)
tuppari = Tuppari.login(YOUR_ID, PASSWORD)
application = tuppari.create_application('first-tuppari')
open('tuppari.html', 'w') do |f|
html = <<"EOF"
<html>
<head>
<script src="http://cdn.tuppari.com/0.2.0/tuppari.min.js"></script>
<script>
var client, channel;
client = tuppari.createClient({applicationId: '#{application.id}'});
channel = client.subscribe('ch');
channel.bind('update', function (msg) {
console.log(msg);
});
</script>
</head>
<body>Check JavaScript console.</body>
</html>
EOF
f.write(html)
end
#
# [notice] Please open this 'tuppari.html' file in browser.
#
tuppari.application = application # or tuppari.load_application_by_name('first-tuppari')
tuppari.publish_message(
:channel => 'ch',
:event => 'update',
:message => "Hello, Tuppari! (#{Time.now})"
)
Tuppari account authentication is not needed for publishing messages. And following values for the target application are required.
application = Tuppari::Application.new(
:id => '4032236d-699a-4599-9405-xxxxxxxxxxxx',
:access_key_id => 'b49049f9-e055-4fa5-925b-xxxxxxxxxxxx',
:access_secret_key => 'c01a3a31-92cd-4bf9-a238-xxxxxxxxxxxx'
) # or application = tuppari.get_application('first-tuppari')
Tuppari.publish_message(
:application => application,
:channel => 'ch',
:event => 'update',
:message => "Hello, Tuppari! (#{Time.now})"
)
FAQs
Unknown package
We found that tuppari 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.