文件名称:action_cable_client:用于与Rails的ActionCable交互的ruby客户端。 -维修人员通缉
文件大小:18KB
文件格式:ZIP
更新时间:2024-02-22 09:22:31
ruby rails action-cable hacktoberfest action-cable-protocol
动作电缆客户端 该gem是的包装,并支持Rails Action Cable协议。 用法 require 'action_cable_client' EventMachine . run do uri = "ws://localhost:3000/cable/" client = ActionCableClient . new ( uri , 'RoomChannel' ) # called whenever a welcome message is received from the server client . connected { puts 'successfully connected.' } # called whenever a message is received from the server client . received do | message | puts message end # Sends a message to the sever, with the 'action', 'speak' clien
【文件预览】:
action_cable_client-master
----action_cable_client.gemspec(1KB)
----local_test.rb(382B)
----lib()
--------action_cable_client()
--------action_cable_client.rb(7KB)
----Gemfile(192B)
----.codeclimate.yml(2KB)
----spec()
--------spec_helper.rb(1KB)
--------unit()
----Rakefile(59B)
----.travis.yml(344B)
----LICENSE(1KB)
----README.md(5KB)
----.rubocop.yml(1KB)
----.rspec(22B)
----.gitignore(620B)
----CHANGELOG.md(3KB)
----mesh_test.rb(1KB)