Giter Site home page Giter Site logo

jwebsocket-core's Introduction

jWebSocket Core

This is a minimal fork of jWebSocket, a Java WebSocket library. The fork includes only the core server and client components, together with some bug fixes.

Development work on this library was carried out as part of SerenA, an RCUK funded research project, and the code itself was used to build a communication hub facilitating interaction between a backend multiagent-based serendipity/recommendation engine and human users using an Android notebook app.

Testing jWebSocket with Autobahn

Current results [1]

Something like the following should be sufficient to run the Autobahn server tests, assuming you have AutobahnTestSuite installed [2]

$ git clone --recursive github:jamieforth/jwebsocket-core

$ cd jwebsocket-core

$ mvn clean install

$ cd jwebsocket-server

$ mvn -X exec:java -Dexec.mainClass=org.jwebsocket.console.JWebSocketServer -DJWEBSOCKET_HOME=<full-path-to>/jwebsocket-core/jwebsocket-server/src/test/resources/autobahn/

$ wstest -m fuzzingclient -w ws://localhost:8787 -s <full-path-to>/jwebsocket-core/jwebsocket-server/src/test/config/autobahn-test.json

[1] The official jWebSocket code will fail every test, but that is because it expects an origin header field in the client handshake, which should be optional and is not sent by Autobahn.

[2] In Python 2.7.3 I had to hack autobahn/websocket.py because urlparse.uses_query.extend and urlparse.uses_fragment have been removed.

jwebsocket-core's People

Contributors

jamieforth avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.