M
M
miki1312014-06-28 03:37:56
Node.js
miki131, 2014-06-28 03:37:56

How to connect to XMLSocket from Node JS?

There is a chat page. It has a flash drive that connects to ip:port

vat socket = new XMLSocket();
socket.addEventListener(DataEvent.DATA, onSocketData);

The onSocketData function passes data through the ExternalInterface to a javascript that displays all messages.
How can I connect to the server in the node and receive messages?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VBKesha, 2014-06-29
@VBKesha

help.adobe.com/ru_RU/FlashPlatform/reference/actio...
Judging by the description, a normal TCP connection and message forwarding in XML format are used. If there are no ready-made modules anywhere, then nodejs.org/api/net.html#net_class_net_socket and implement the reception of sending XML messages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question