status-lib/status/node.nim

17 lines
375 B
Nim
Raw Normal View History

2021-09-08 18:05:39 +00:00
import libstatus/core as status
import ../eventemitter
type NodeModel* = ref object
events*: EventEmitter
proc newNodeModel*(): NodeModel =
result = NodeModel()
result.events = createEventEmitter()
proc delete*(self: NodeModel) =
discard
proc sendRPCMessageRaw*(self: NodeModel, msg: string): string =
echo "sending RPC message"
status.callPrivateRPCRaw(msg)