diff options
Diffstat (limited to 'server-beta/src/brave/init.lua')
-rw-r--r-- | server-beta/src/brave/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server-beta/src/brave/init.lua b/server-beta/src/brave/init.lua new file mode 100644 index 00000000..39b66bac --- /dev/null +++ b/server-beta/src/brave/init.lua @@ -0,0 +1,13 @@ +local brave = require 'brave.brave' +local jsonrpc = require 'jsonrpc' + +brave.on('loadProto', function () + while true do + local proto = jsonrpc.decode(io.read, log.error) + if proto then + return proto + end + end +end) + +return brave |