Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 2.01 KB

NOTES.md

File metadata and controls

52 lines (42 loc) · 2.01 KB

MongoDB Wire Protocol

WebSocket Proxies

  • Nginx (native)
  • ngx_tcp_proxy_module
  • ngx_websockify_module (which, despite its name, seems only to proxy)
  • HAproxy
  • Varnish (not explored)

WebSocket Bridges

  • websockify (Python)
    • minimal dependencies bar numpy, but hardcodes protocol to binary or base64
    • would need to be patched to be useful
    • fallback flash socket unfortunately is not useful today (base64 & uses flash)
  • websockify (C)
    • known bugs with large frame sizes
  • websockify (Ruby, Clojure, Node-JS)
  • wspipe, but for Node-JS
  • ws-to-tcp-bridge, but for Node-JS
  • websocket-tcp-forwarder, golang, but from first time go user

WebSocket Libraries (C)

  • libwebsockets
    • has a sample server
    • should be easy to adapt as a bridge if using poll
    • tutorial here
    • ideally, should be made a low-overhead process using libev or epoll
      • seems to contain some libev code...

Other

  • WebTCP: A wrapper around websockets and various fallbacks
  • Nginx Push module includes WebSockets

JavaScript Notes

Modular