git ssb

0+

wanderer🌟 / js-primea-abstract-container



Commit 736aefeb448384f3c3133922fe104db38ddb2a27

Rename initalize/run

Alex Beregszaszi committed on 7/27/2017, 9:59:44 PM
Parent: abe94d07955c811f1fdb8e283515c3ec0309a104

Files changed

index.jschanged
index.jsView
@@ -10,16 +10,16 @@
1010 // In general, a root instance receives no message, but every other instance
1111 // receives a message with a singel port, which is a channel to its parent (aka the root).
1212 //
1313 // Optionally it can return a single value.
14- async initialize (message) {
14 + async onCreation (message) {
1515 throw new Error('Unimplemented initialiser')
1616 }
1717
1818 // This is called for each incoming message the container gets.
1919 //
2020 // Optionally it can return a single value.
21- async run (message) {
21 + async onMessage (message) {
2222 throw new Error('Unimplemented message: ' + message.data)
2323 }
2424
2525 // onIdle is called when there are no more immediate messages pending

Built with git-ssb-web