Commits
![Mike Jerris](/stash/users/mikej/avatar.png?s=96&v=1404244603000)
Mike Jerris committed 815f34fbfb9
MODLANG-21: Add socket module for spidermonkey from Jonas Gauffin methods: connect, close, send, readBytes, read. Note! It's completely untested. usage: var socket = new Socket(); socket.connect("hostname", 1234"); var line = socket.read(); socket.send("this is something\n"); The read method takes a delimiter and do not return until the delimiter have been received (or the connection have been dropped). The default delimiter is "\n". The readBytes method reads the number of specified bytes. only a TCP socket implementation. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5701 d0543943-73ff-0310-b7d9-9358b9ac24b2