ko4j registers implementation of Transfer and WSTransfer based on XHR and WebSocket from a browser. The Java implementations of these interfaces has been moved to ko-ws-tyrus module. JavaScript arrays passed as parameters to Java callback methods need to be wrapped.
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.netbeans.html</groupId>
6 <artifactId>pom</artifactId>
7 <version>0.7-SNAPSHOT</version>
9 <groupId>org.netbeans.html</groupId>
10 <artifactId>ko-ws-tyrus</artifactId>
11 <version>0.7-SNAPSHOT</version>
12 <packaging>bundle</packaging>
13 <name>Tyrus Based WebSockets</name>
14 <url>http://maven.apache.org</url>
18 <groupId>org.apache.maven.plugins</groupId>
19 <artifactId>maven-compiler-plugin</artifactId>
20 <version>2.3.2</version>
27 <groupId>org.apache.felix</groupId>
28 <artifactId>maven-bundle-plugin</artifactId>
31 <groupId>org.apache.maven.plugins</groupId>
32 <artifactId>maven-javadoc-plugin</artifactId>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <bundleSymbolicName>org.netbeans.html.ko-ws-tyrus</bundleSymbolicName>
44 <!-- compile only deps -->
46 <groupId>org.netbeans.api</groupId>
47 <artifactId>org-openide-util-lookup</artifactId>
49 <scope>provided</scope>
52 <!-- compile + runtime -->
54 <groupId>${project.groupId}</groupId>
55 <artifactId>net.java.html</artifactId>
56 <version>${project.version}</version>
60 <groupId>${project.groupId}</groupId>
61 <artifactId>net.java.html.json</artifactId>
62 <version>${project.version}</version>
66 <groupId>de.twentyeleven.skysail</groupId>
67 <artifactId>org.json-osgi</artifactId>
70 <artifactId>javax.websocket-api</artifactId>
71 <groupId>javax.websocket</groupId>
73 <version>1.0</version>
76 <!-- tyrus runtime -->
78 <groupId>org.glassfish.tyrus</groupId>
79 <artifactId>tyrus-client</artifactId>
80 <version>1.2.1</version>
81 <scope>runtime</scope>
84 <groupId>org.glassfish.tyrus</groupId>
85 <artifactId>tyrus-container-grizzly</artifactId>
86 <version>1.2.1</version>
87 <scope>runtime</scope>
92 <!-- test only deps -->
94 <groupId>${project.groupId}</groupId>
95 <artifactId>net.java.html.boot</artifactId>
96 <version>${project.version}</version>
100 <groupId>${project.groupId}</groupId>
101 <artifactId>net.java.html.json.tck</artifactId>
102 <version>${project.version}</version>
107 <groupId>${project.groupId}</groupId>
108 <artifactId>ko4j</artifactId>
109 <version>0.7-SNAPSHOT</version>
114 <groupId>org.glassfish.grizzly</groupId>
115 <artifactId>grizzly-http-server-core</artifactId>
116 <version>2.3.3</version>
121 <groupId>org.glassfish.grizzly</groupId>
122 <artifactId>grizzly-websockets-server</artifactId>
123 <version>2.3.3</version>
128 <groupId>${project.groupId}</groupId>
129 <artifactId>net.java.html.boot.fx</artifactId>
130 <version>${project.version}</version>
134 <groupId>org.glassfish.grizzly</groupId>
135 <artifactId>grizzly-http-server</artifactId>
136 <version>2.3.3</version>
140 <groupId>org.glassfish.grizzly</groupId>
141 <artifactId>grizzly-http-servlet</artifactId>
142 <version>2.3.3</version>
146 <groupId>javax.servlet</groupId>
147 <artifactId>javax.servlet-api</artifactId>
149 <version>3.1.0</version>
152 <description>An implementation module that provides support for WebSocket protocol on JDK7.
153 No need to use it when running on JDK8 with FX WebView supporting WebSocket directly.</description>