- FunctionBasedURPConnection is used to enable a client to open a URP connection to a fresh Kit instance in COOL. - This URP connector can be used with that and https://github.com/CollaboraOnline/online/pull/6992 to use a Java Uno Remote Protocol client over websockets - For interoperability with existing Collabora Online websockets a prefix (urp ) is added to each message sent and a similar prefix (urp: ) is expected on each message recieved. This allows sending over the same websocket as other data is being transmitted through. If you are writing a bridge to work with this, you will need to add/strip the prefixes accordingly - This commit uses Java WebSocket (https://github.com/TooTallNate/Java-WebSocket) to send data over websockets. Change-Id: I2bda3d0b988bef7883f9b6829eeb5b7ae8075f27 Signed-off-by: Skyler Grey <skyler.grey@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151171 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_ExternalProject_ExternalProject,java_websocket))
|
|
|
|
$(eval $(call gb_ExternalProject_register_targets,java_websocket,\
|
|
build \
|
|
))
|
|
|
|
$(call gb_ExternalProject_get_state_target,java_websocket,build) :
|
|
$(call gb_Trace_StartRange,java_websocket,EXTERNAL)
|
|
$(call gb_ExternalProject_run,build,\
|
|
JAVA_HOME=$(JAVA_HOME_FOR_BUILD) \
|
|
$(ICECREAM_RUN) "$(ANT)" \
|
|
$(if $(verbose),-v,-q) \
|
|
-f build.xml \
|
|
-Dbuild.label="build-$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)" \
|
|
-Dant.build.javac.source=$(JAVA_SOURCE_VER) \
|
|
-Dant.build.javac.target=$(JAVA_TARGET_VER) \
|
|
$(if $(debug),-Dbuild.debug="on") \
|
|
jar \
|
|
)
|
|
$(call gb_Trace_EndRange,java_websocket,EXTERNAL)
|
|
|
|
# vim: set noet sw=4 ts=4:
|