Jump to content

Problem with sockets module


Recommended Posts


My problem is simple but weird. I'm just doing sockOpen to my socket server but for some reason the server console throws:

' WARNING: Bad argument @ 'triggerEvent' [Expected element at argument 2]'

I'm using Linux x64 module (https://nightly.mtasa.com/files/modules/64/ml_sockets.so) and my script is like:

local discordSocket = sockOpen("myurl.xyz", 777);

My socket server is in nodejs:

var App = require('express')();
var server = require('http').Server(App);
var io = require('socket.io')(server);

server.listen(777, () => console.log("Escuchando puerto 777"));

io.on('connection', function (socket) {
  console.log("Alguien se ha conectado!");


Edited by Sasu
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...