Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I can't get Goliath to handle POST or PUT requests with parameters when using the WebSocket class. Complains undefined method 'handler' in Goliath::Env
POST-requests without parameters appears to be working.
This code produces the error:
I get the following error when doing a post request:
If i sublacss from Goliath::API instead, it works fine.
Websockets != HTTP. It does not support POST/PUT. You may want to do some research into what Websockets are and do.
Here is some good reading material:
Specifically for your reference:
Just an alternative to use POST in Goliath::WebSocket http://vec.io/posts/use-warden-to-authenticate-in-ruby-goliath#toc-troubleshooting