lib/atome/genesis/generators/communication.rb in atome-0.5.4.1.9 vs lib/atome/genesis/generators/communication.rb in atome-0.5.5.6.4
- old
+ new
@@ -1,2 +1,11 @@
# frozen_string_literal: true
+new({ particle: :connection }) do |params, bloc|
+ params = { server: params } unless params.instance_of? Hash
+ html.connect(params[:server], &bloc)
+end
+
+new({ particle: :message }) do |params, bloc|
+ params = { server: params } unless params.instance_of? Hash
+ html.send_message(params[:server], &bloc)
+end