Jetty Websocket Interface Wrapper

A simple wrapper to use Jetty websocket client without annotation support (eg. from jython).

License

License

Categories

Categories

Jetty Container Application Servers
GroupId

GroupId

io.r2
ArtifactId

ArtifactId

jetty-ws-wrapper
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

Jetty Websocket Interface Wrapper
A simple wrapper to use Jetty websocket client without annotation support (eg. from jython).
Project URL

Project URL

https://github.com/robymus/jetty-ws-wrapper
Source Code Management

Source Code Management

https://github.com/robymus/jetty-ws-wrapper

Download jetty-ws-wrapper

Dependencies

runtime (1)

Group / Artifact Type Version
org.eclipse.jetty.websocket : websocket-api jar 9.0.3.v20130506

Project Modules

There are no modules declared in this project.

jetty-ws-wrapper

Simple hack to use jetty websocket client from jython.

As the jetty websocket client uses an annotated POJO as the message handler, it is not easy to use it from jython, creating annotations is very clumsy on jython classes.

It uses jetty-websocket-api 9.0.3 for compatibility with legacy codebase.

All classes and interfaces are in io.r2.jettywswrapper package.

Basic usage

The WebSocketWrapper class wraps a WebSocketInterface into an annotated class.

It supports only text messages and

That's it, this is a just patch for a legacy jython code, so it's not nice.

Advanced usage

Just in case, maybe needed in the future, the WebSocketWrapperAdv class wraps a WebSocketInterfaceAdv, exposing all events and binary messages as well.

Repository

Available in maven central as io.r2:jetty-ws-wrapper.

Versions

Version
0.1