GithubHelp home page GithubHelp logo

johnthedebs / sockjs-gevent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ksava/sockjs-gevent

1.0 1.0 0.0 213 KB

Work in progress SockJS server with gevent backend

License: MIT License

Python 100.00%

sockjs-gevent's Introduction

gevent-sockjs

A work in progress gevent server backend for SockJS. General goal is to have a faithful implemention of @majek's sockjs-protocol that plays nicely with gevent & green threads.

Somewhat unstable at the moment, does not pass all sockjs-protocol tests.

Running

# New virtualenv
mkvirtualenv sockjs

# To run the dev server
pip install -r requirements.txt
python gevent_sockjs/devserver.py

# To run tests
pip install -r requirements_dev.txt
nosetests

Test Status

test_greeting (test_protocol.BaseUrlGreeting) ... ok
test_notFound (test_protocol.BaseUrlGreeting) ... ok
test_response_limit (test_protocol.EventSource) ... ok
test_transport (test_protocol.EventSource) ... ok
test_abort_xhr_polling (test_protocol.HandlingClose) ... ok
test_abort_xhr_streaming (test_protocol.HandlingClose) ... ok
test_close_frame (test_protocol.HandlingClose) ... FAIL
test_close_request (test_protocol.HandlingClose) ... ok
test_no_callback (test_protocol.HtmlFile) ... ok
test_response_limit (test_protocol.HtmlFile) ... ok
test_transport (test_protocol.HtmlFile) ... ok
test_cacheability (test_protocol.IframePage) ... ok
test_invalidUrl (test_protocol.IframePage) ... ok
test_queriedUrl (test_protocol.IframePage) ... ok
test_simpleUrl (test_protocol.IframePage) ... ok
test_versionedUrl (test_protocol.IframePage) ... ok
test_basic (test_protocol.InfoTest) ... ok
test_disabled_websocket (test_protocol.InfoTest) ... ok
test_entropy (test_protocol.InfoTest) ... ok
test_options (test_protocol.InfoTest) ... ok
test_xhr_server_decodes (test_protocol.JSONEncoding) ... ok
test_xhr_server_encodes (test_protocol.JSONEncoding) ... ok
test_content_types (test_protocol.JsonPolling) ... ok
test_invalid_json (test_protocol.JsonPolling) ... ok
test_no_callback (test_protocol.JsonPolling) ... ok
test_transport (test_protocol.JsonPolling) ... ok
test_closeSession (test_protocol.Protocol) ... ok
test_simpleSession (test_protocol.Protocol) ... ok
test_close (test_protocol.RawWebsocket) ... ERROR
test_transport (test_protocol.RawWebsocket) ... ERROR
test_anyValue (test_protocol.SessionURLs) ... ok
test_ignoringServerId (test_protocol.SessionURLs) ... ok
test_invalidPaths (test_protocol.SessionURLs) ... ok
test_broken_json (test_protocol.WebsocketHixie76) ... ERROR
test_close (test_protocol.WebsocketHixie76) ... ERROR
test_empty_frame (test_protocol.WebsocketHixie76) ... FAIL
test_headersSanity (test_protocol.WebsocketHixie76) ... ok
test_reuseSessionId (test_protocol.WebsocketHixie76) ... ERROR
test_transport (test_protocol.WebsocketHixie76) ... ok
test_httpMethod (test_protocol.WebsocketHttpErrors) ... ok
test_invalidConnectionHeader (test_protocol.WebsocketHttpErrors) ... ok
test_invalidMethod (test_protocol.WebsocketHttpErrors) ... ok
test_verifyOrigin (test_protocol.WebsocketHttpErrors) ... ok
test_broken_json (test_protocol.WebsocketHybi10) ... ERROR
test_close (test_protocol.WebsocketHybi10) ... ERROR
test_firefox_602_connection_header (test_protocol.WebsocketHybi10) ... ERROR
test_headersSanity (test_protocol.WebsocketHybi10) ... ERROR
test_transport (test_protocol.WebsocketHybi10) ... ERROR
test_content_types (test_protocol.XhrPolling) ... ok
test_invalid_json (test_protocol.XhrPolling) ... ok
test_invalid_session (test_protocol.XhrPolling) ... ok
test_jsessionid (test_protocol.XhrPolling) ... ok
test_options (test_protocol.XhrPolling) ... ok
test_transport (test_protocol.XhrPolling) ... ok
test_options (test_protocol.XhrStreaming) ... ok
test_response_limit (test_protocol.XhrStreaming) ... ok
test_transport (test_protocol.XhrStreaming) ... ok

Test Coverage

Name                        Stmts   Miss  Cover
-----------------------------------------------
gevent_sockjs/errors           21     13    38%
gevent_sockjs/handler         211    175    17%
gevent_sockjs/protocol         56     26    54%
gevent_sockjs/router           87     53    39%
gevent_sockjs/server           53     25    53%
gevent_sockjs/session          73     45    38%
gevent_sockjs/sessionpool      58     42    28%
gevent_sockjs/static           37     25    32%
gevent_sockjs/transports      102     62    39%
-----------------------------------------------
TOTAL                         698    466    33%

sockjs-gevent's People

Contributors

fafhrd91 avatar johnthedebs avatar sdiehl avatar

Stargazers

 avatar

Watchers

 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.