using System;
using Quobject.SocketIoClientDotNet.Client;
namespace ElectronNET.API
{
//
// Summary:
// Communicate asynchronously from the main process to renderer processes.
public class IpcMain
{
private Socket _socket;
public IpcMain(Socket socket)
{
_socket = socket;
}
///
/// Listens to channel, when a new message arrives listener would be called with
/// listener(event, args...).
///
/// Channelname.
/// Callback Method.
public void On(string channel, Action