Add ipc.sendSync in renderer.

This commit is contained in:
Cheng Zhao 2013-04-23 21:52:19 +08:00
parent 8f0b2b6363
commit 1b87a31940
10 changed files with 132 additions and 4 deletions

View file

@ -5,6 +5,8 @@ class Ipc extends EventEmitter
constructor: ->
process.on 'ATOM_INTERNAL_MESSAGE', (args...) =>
@emit(args...)
process.on 'ATOM_INTERNAL_MESSAGE_SYNC', (args...) =>
@emit(args...)
send: (process_id, routing_id, args...) ->
@sendChannel(process_id, routing_id, 'message', args...)