Error messages follow this pattern: functionName(): error message.Ĭonnect(, spyMode): Connect to a random stranger.Īrgument: topics - Optional. For instance, calling send() before calling connect().Īrgument: errorMsg - Error description. Omerror: emitted when there's an error on client-side. RecaptchaRejected: emitted when your answer to the ReCAPTCHA challenge is rejected.Īrgument: challenge - Link to the new ReCAPTCHA image. RecaptchaRequired: emitted when you're required to solve a ReCAPTCHA.Īrgument: challenge - Link to the ReCAPTCHA image. (Note: this is different from omerror).ĪntinudeBanned: emitted when you get banned for bad behavior. OmegleError: emitted when there's an error on Omegle's side. StrangerDisconnected: emitted when the stranger disconnects.ĬonnectionDied: emitted when connection to the server is lost. If you want to reconnect, call connect() again only on disconnected and strangerDisconnected event. This will be emitted when you call disconnect(). Question: emitted when you receive a question when spy mode is enabled.ĬommonLikes: emitted when you're connected to a stranger with matching interests.Īrgument: likes - Array of matching interests.ĭisconnected: emitted when you disconnect from the chat. GotMessage: emitted when you receive a message. StoppedTyping: emitted when the stranger stops typing. Typing: emitted when the stranger starts typing.
Waiting: emitted when you're looking for strangers to connect to.Ĭonnected: emitted when you're connected to a stranger. GotID: emitted when you're connected to Omegle's server (note that you're not connected to a stranger yet).Īrgument: id - The ID assigned to you by Omegle. This is a fixed version of omegle-node, originally created by dumptyd.Ĭheck out examples/omegle.js to get a hang of how this works. Omegle-node-fix is an unofficial API for Omegle which can be used to connect and interact with people on omegle without actually going to the website. Omegle-node-fix - Unofficial fixed node.js API for Omegle