src/java/Makefile
src/java/Makefile.in
src/java/opensrf.jar
+src/javascript/opensrf_ws.js
+src/javascript/opensrf_ws_shared.js
src/jserver/.deps/
src/jserver/Makefile
src/jserver/Makefile.in
You can add the `--enable-python` option to the configure command
to build Python support and `--enable-java` for Java support.
+If you are planning on proxying WebSockets traffic (see below), you
+can add `--with-websockets-port=443` to specify that WebSockets traffic
+will be going through port 443. Without that option, the default port
+is 7682.
+
Installation instructions
-------------------------
/etc/init.d/nginx start
---------------------------------------------------------------------------
+
-6. Edit `<PREFIX>/javascript/opensrf_ws.js` and `<PREFIX>/javascript/opensrf_ws_shared.js`
+6. If you didn't run `configure` with the `--with-websockets-port=443` option,
+edit `<PREFIX>/javascript/opensrf_ws.js` and `<PREFIX>/javascript/opensrf_ws_shared.js`
and change
+
[source, javascript]
[PERL_BASE=x])
AC_SUBST([PERL_BASE])
+AC_ARG_WITH([websockets-port],
+[ --with-websockets-port=path WebSockets port to use (default is 7682)],
+[WS_PORT=${withval}],
+[WS_PORT=7682])
+AC_SUBST([WS_PORT])
+
# The following Apache version detection code is adapted from
# http://www.gnu.org/software/autoconf-archive/ax_prog_apache.html
# licensed under version 2 of the GNU General Public License, or
examples/multisession-test.pl
src/c-apps/Makefile
src/gateway/Makefile
+ src/javascript/opensrf_ws.js
+ src/javascript/opensrf_ws_shared.js
src/libopensrf/Makefile
src/perl/Makefile
src/ports/strn_compat/Makefile
if INSTALLJAVASCRIPT
MAYBE_JAVASCRIPT = javascript
jsdir = $(prefix)/lib/javascript
-js_SCRIPTS = javascript/DojoSRF.js javascript/JSON_v1.js javascript/md5.js javascript/opensrf.js javascript/opensrf_xhr.js javascript/opensrf_xmpp.js javascript/opensrf_ws_shared.js
+js_SCRIPTS = javascript/DojoSRF.js javascript/JSON_v1.js javascript/md5.js javascript/opensrf.js javascript/opensrf_xhr.js javascript/opensrf_xmpp.js javascript/opensrf_ws.js javascript/opensrf_ws_shared.js
endif
if BUILDCORE
rm "$(DESTDIR)@sysconfdir@/$${f}.bak" ; \
done; \
fi
- cp -r @srcdir@/javascript/* $(DESTDIR)$(jsdir)/
if [ ! -e @bindir@/osrf_control ]; then \
ln -s @bindir@/opensrf-perl.pl @bindir@/osrf_control; \
fi
var WEBSOCKET_URL_PATH = '/osrf-websocket-translator';
-var WEBSOCKET_PORT_SSL = 7682;
+var WEBSOCKET_PORT_SSL = @WS_PORT@;
OpenSRF.WebSocket = function() {
this.pending_messages = [];
*/
var WEBSOCKET_URL_PATH = '/osrf-websocket-translator';
-var WEBSOCKET_PORT_SSL = 7682;
+var WEBSOCKET_PORT_SSL = @WS_PORT@;
var WEBSOCKET_MAX_THREAD_PORT_CACHE_SIZE = 1000;
/**