动作电缆客户端 该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 'successfull