Add sendToHost method

This commit is contained in:
Cheng Zhao 2014-12-17 11:09:11 -08:00
parent d46300587a
commit a8f5a4e2d4
5 changed files with 17 additions and 7 deletions

View file

@ -16,6 +16,9 @@ class Ipc extends EventEmitter
sendSync: (args...) ->
JSON.parse ipc.sendSync('ipc-message-sync', [args...])
sendToHost: (args...) ->
ipc.send 'ipc-message-host', [args...]
# Discarded
sendChannel: -> @send.apply this, arguments
sendChannelSync: -> @sendSync.apply this, arguments