Sign in to follow this  
Sasu

Problem with sockets module

Recommended Posts

Hey!

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.