summaryrefslogtreecommitdiff
path: root/server-beta/src/brave/init.lua
blob: 39b66bacdc364b47a0fde6ce0c377df328c845c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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