I tried using juci/orangerpcd server behind lighthttpd(v1.4.45). I patched upstream lighttpd with mod_websocket support.
When i try connecting from web browser(chrome), websocket connection was successful, and could able to send the initial rpc request to lighttpd -> ornagerpcd, but couldn't get the reply back from lighttpd, and my browser splitting error saying 'Invalid frame header'.
Here is my websocket.conf :
server.modules += ( "mod_websocket")
websocket.server = (
# WebSocket Proxies
# orangerpcd webserver
"^\/websocket\/*" => (
"host" => "127.0.0.1",
"port" => 5303,
"proto" => "websocket", "subproto" => "text"
)
)
websocket.ping_interval = 5 # send PING per 5 secs
websocket.timeout = 30 # disconnect a client when not to recv PONG for 30 secs
websocket.debug = 4 # LOG_DEBUG
orangerpcd's logs:
connection established! localhost.localdomain 127.0.0.1 9 06fed35d
received fragment of 91 bytes
got message from 06fed35d: [{"jsonrpc":"2.0","id":2,"method":"list","params":["00000000000000000000000000000000","*"]}]
sending back: {"jsonrpc":"2.0","id":2,"result":{"\/juci\/ddns":{"providers":[]},"\/juci\/dhcp":{"ipv6leases":[],"ipv4leases":[]},"\/juci\/diagnostics":{"ping":[],"traceroute6":[],"traceroute":[],"ping6":[]},"\/juci\/dropbear":{"get_public_keys":[],"add_public_key":[],"remove_public_key":[]},"\/juci\/ethernet":{"adapters":[]},"\/juci\/ethernet.modems":{"list4g":[],"list":[]},"\/juci\/firewall.dmz":{"excluded_ports":[]},"\/juci\/macdb":{"lookup":[]},"\/juci\/minidlna":{"status":[],"autocomplete":[],"folder_tree":[]},"\/juci\/samba":{"autocomplete":[],"folder_tree":[]},"\/juci\/swconfig":{"status":[]},"\/juci\/system":{"defaultreset":[],"log":[],"info":[],"filesystems":[],"reboot":[]},"\/juci\/system.conf":{"backup":[],"clean":[],"restore":[],"features":[]},"\/juci\/system.logs":{"download":[]},"\/juci\/system.process":{"list":[]},"\/juci\/system.service":{"status":[],"stop":[],"list":[],"start":[],"reload":[],"enable":[],"disable":[]},"\/juci\/system.time":{"set":[],"timediff":[],"zonelist":[],"get":[]},"\/juci\/system.upgrade":{"online":[],"check":[],"test":[],"start":[],"clean":[]},"\/juci\/system.user":{"listusers":[],"setpassword":[]},"\/juci\/ui":{"menu":[]},"\/juci\/upnpd":{"ports":[]},"\/juci\/usb":{"list":[]}}}
sent 1222 out of 1222 bytes
received fragment of 8 bytes
websocket: client disconnected 0x7fa088000aa0 0x7fa088000ac0
I tried using juci/orangerpcd server behind lighthttpd(v1.4.45). I patched upstream lighttpd with mod_websocket support.
When i try connecting from web browser(chrome), websocket connection was successful, and could able to send the initial rpc request to lighttpd -> ornagerpcd, but couldn't get the reply back from lighttpd, and my browser splitting error saying 'Invalid frame header'.
Here is my websocket.conf :
orangerpcd's logs:
Chrome Network websocket Headers:
Netwrok websocket Frames:
What is going wrong :(