On Sun, Jan 1, 2012 at 10:54 AM, Bruno Gruel <[email protected]> wrote: > > But under mongrel2 the json declaration is like that '@Xservice' = > handler
maybe this is what you mean, but per my understanding and: http://mongrel2.org/static/mongrel2-manual.html#x1-370003.6.2 ... it's not the route location that starts with an `@`, it's the request itself ... yes? eg: @chat {"msg": "hello"}\0 ... is the ENTIRE request at the server level. these are raw/native JSON handlers, and are by design, location-less/url-less ... they are not HTTP IIRC ... i don't believe they even have headers or anything else beyond the above. this, and XML routes, are used to conveniently support raw TCP Flash/JSON communication on port 80, alongside the webserver -- since you are connecting from a browser, you'd have no way, whatsoever, to communicate in this fashion. however ... you stated use of `services/XService.py` which looks like a normal route. if that file is performing standard JSONRPC per the spec, you don't need to do anything -- have you tried running it? are you using native mongrel2 JSON routes, or JSONRPC? would need an error or more description to understand more, but at the end of the day, if your not doing HTTP, you won't be using it with pyjamas (though mongrel2 will soon support the recently revised WebSocket standard). -- C Anthony

