connect to websocket from adobe air app

Gabriel T

Member
Hello
i need to connect to wcs websocket from an adobe air app (used for my screen sharing) in order to inform connected users in room that screensharing have started. i'm trying to use this lib: https://github.com/theturtle32/AS3WebSocket
but on connected there is a protocol error. any idea of which protocol i should specify, or any different way to accomplish what i need ?
thank you
 

Gabriel T

Member
ok problem solved, just had to get rid of any protocol specification. However i cant communicate though it, apparently it requires json messages...so what should be the json formatted string to send if lets say i want to broadcast a message to all users in current room ?

the as3 code looks like this so far:websocket.sendUTF("Hello World!\n");
so i guess i should replace hello world by a json string containing the command name and params...right ?
 

Max

Administrator
Staff member

Attachments

Top