Skip to content

websocket throws 'no method appendmessage" #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
macrauder opened this issue Nov 26, 2011 · 4 comments
Closed

websocket throws 'no method appendmessage" #162

macrauder opened this issue Nov 26, 2011 · 4 comments

Comments

@macrauder
Copy link

With the actual 0.7.7 version i get a

var reverseProxy = agent.appendMessage(outgoing); ^
TypeError: Object # has no method 'appendMessage'

Exception when i access the proxy via websocket requests.

@mmalecki
Copy link
Contributor

node-http-proxy is not compatible with node v0.6 yet, but this particular thing has been fixed in 0.6-compatibility branch, in c1d5bc9.

Please note that websockets don't work on node v0.6 yet.

Please see #159.

@bantic
Copy link

bantic commented Dec 6, 2011

I get the same issue on node v0.5.10 and node-http-proxy v0.7.6. I am trying to test websocket proxying with node-http-proxy. This is what I'm doing:
https://gist.github.com/1439942

The code is adapted from the websocket code sample linked at this nodejitsu blog post:
http://blog.nodejitsu.com/http-proxy-intro

Fwiw, I am still struggling to get websockets proxying with node-http-proxy (v0.7.6, and node v0.5.10) when the target server is not running locally (I get the error referenced in #112). I'd love to see some sample code to do that.

@Marak
Copy link
Contributor

Marak commented Dec 6, 2011

0.5.x is the same compatibility as 0.6.x node

Why are you running an unstable version of node? Anything in an odd numbered Node minor release is considered unstable by definition.

@bantic
Copy link

bantic commented Dec 6, 2011

My bad. I didn't realize. I was just testing it and thought I'd get the latest non-0.6.x version of node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants