0.0.12 • Published 7 years ago

electron-nokogiri v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

electron-nokogiri

  • in main
const nokogiri = require("electron-nokogiri");

nokogiri.use('terminal/:pid', (next, params,param, event) => {
    // params => your params
    // param {pid:''}
    // event  => hook of  ipcMain event
    // next  callback 
    //after done your things 
    next(result)
});
    
nokogiri.sockets('terminals/:pid',({socket,params}) => {
    
    socket.send('hello electron');

    socket.on('message', function(msg) {
       
    });

    socket.on('close', function() {
        
    });
})
  • in render
const {fetcher,webSocket} = require("electron-nokogiri/lib/web");

fetcher('terminal/1111',params).then((data)=>{
    console.info(data)
});


socket = new webSocket('terminals/11111');
socket.on('open',(data)=>{
    
})
//...
0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago