Sha256: 7488b04c877be1022faa0b8dc7ec18f05e36492887af351696f124cbd96c487f
Contents?: true
Size: 688 Bytes
Versions: 22
Compression:
Stored size: 688 Bytes
Contents
controller :my_controller do services :vm action :my_action do on_entry %{ } on "create_page", %{ var page = vm_create_page("test"); var info = {ns: "sockio", page: page}; Request("vm", "write", info); var info2 = {ns: "sockio", id: "test"}; Request("vm", "watch", info2); } on "modify_page", %{ //Modify the page var new_page = vm_copy_page(read_page); new_page.entries.push({ _id: gen_id(), _sig: gen_id(), value: "foo" }); var info = {ns: "sockio", page: new_page} Request("vm", "write", info); } on "read_res", %{ read_page = params; } end end
Version data entries
22 entries across 22 versions & 1 rubygems