1.0.0 • Published 10 years ago

omegle-client v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

An Omegle client for node

Example:

var Client = require('omegle-client').Client;

var chat = new Client();

// This starts a new conversation

chat.start(function(err){
  if(err)
    console.log(err);
});

// Omegle extends the standard EventEmitter class so just use the  on  function to subscribe to them
// See below for full list
chat.on('disconnected', function(){
  om.start();
});

Events list

These events are emitted, some with arguments:

waiting
connected
gotMessage
strangerDisconnected
typing
stoppedTyping
recaptchaRequired
recaptchaRejected
statusInfo
question
antinudeBanned
error

Untrue to its name, antinudeBanned does not necessarily mean you where banned for nudity. You will also get this response if your IP is banned because you used omegle too advertise or if you made connections to rapidly.