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

Version Path
flok-0.0.105 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.103 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.102 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.101 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.100 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.99 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.98 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.97 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.96 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.95 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.94 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.93 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.92 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.91 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.90 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.89 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.88 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.87 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.86 spec/kern/assets/vm/pg_sockio/unmark_changes.rb
flok-0.0.85 spec/kern/assets/vm/pg_sockio/unmark_changes.rb