Coder Social home page Coder Social logo

Comments (7)

pbgc avatar pbgc commented on May 8, 2024

websocket mode work for me without any problem!
OSX Mountain Lion with Chrome 21.0.1180.89 here.

from revel.

robfig avatar robfig commented on May 8, 2024

Thanks for the report, but I need more information to help.

  • What environment?
  • What kind of failure do you see / what doesn't work?
  • Can you paste the console output?

from revel.

XULRunner42 avatar XULRunner42 commented on May 8, 2024

I am using the latest x86 FreeBSD Stable as of this week, everything
compiled fresh, force recompiling all ports to make sure I don't have any
version mismatches, almost done with that.

I have also available a Debian Sid on amd64 (maybe x86... have to check my
environment to be sure) with last week's revel code, could update it to
current but then I'm not sure my console output would be complete...

Joining the channel does not yield any output. The page loads as usual and
no "welcome to the chat" happens, typing messages into the channel does not
make messages flow, etc.

I posted a separate issue about the conf changes to new int flags for
output...

I will try to get a dump of console messages in just a minute...

Working with x86 FreeBSD tonight, I had similar results on x86 or amd64
linux, whichever architecture it's masquerading as... the FreeBSD is
definitely x86/i386. I'd hazard a guess that if both systems fail in the
same way, it's likely to be the same bug.
On Sep 24, 2012 9:39 PM, "Rob Figueiredo" [email protected] wrote:

Thanks for the report, but I need more information to help.

  • What environment?

  • What kind of failure do you see / what doesn't work?

    • Can you paste the console output?

    β€”
    Reply to this email directly or view it on GitHubhttps://github.com/robfig/revel/issues/22#issuecomment-8840941.

from revel.

XULRunner42 avatar XULRunner42 commented on May 8, 2024

OK, so I've tested as server: FreeBSD and 32bit/i686 Debian Sid
This time active refresh seems to work fine, but the web socket version still fails every test I throw at it.

I'm using the latest firefox 15.0.1 and chromium 18.0.1025.168 on Ubuntu as client (both)
All that I get back is "WebSocket β€” You are now chatting as testguy" with no "testguy joined the room"

I have the same results with Android JellyBean built in browser from a CyanogenMod 10 beta

The revel source is at 9c18437 ... from Sep 19

The console output from Sid x86 server after various probings on the websocket controller follows:

~
~ revel! http://robfig.github.com/revel
~
2012/09/24 22:07:22 run.go:42: Running app (dev): chat (/home/yebyen/vel/src/github.com/robfig/revel/samples/chat)
2012/09/24 22:07:22 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app
2012/09/24 22:07:22 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/chatroom
2012/09/24 22:07:22 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/controllers
2012/09/24 22:07:22 harness.go:104: Listening on :9001
2012/09/24 22:07:29 run.go:55: Rebuild
2012/09/24 22:07:29 run.go:118: Exec build: /usr/bin/go [/usr/bin/go build -o /home/yebyen/vel/bin/chat github.com/robfig/revel/samples/chat/app/tmp]
2012/09/24 22:07:30 run.go:131: Exec app: /home/yebyen/vel/bin/chat [/home/yebyen/vel/bin/chat -addr= -port=59467 -importPath=github.com/robfig/revel/samples/chat]
2012/09/24 22:07:30 main.go:24: Running revel server
2012/09/24 22:07:30 mvc.go:707: Registered controller: LongPolling
2012/09/24 22:07:30 mvc.go:707: Registered controller: Application
2012/09/24 22:07:30 mvc.go:707: Registered controller: WebSocket
2012/09/24 22:07:30 mvc.go:707: Registered controller: Refresh
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/views
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/views/Application
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/views/LongPolling
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/views/Refresh
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/app/views/WebSocket
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/templates
2012/09/24 22:07:30 watcher.go:92: Watching: /home/yebyen/vel/src/github.com/robfig/revel/templates/errors
2012/09/24 22:07:30 watcher.go:70: Watching: /home/yebyen/vel/src/github.com/robfig/revel/samples/chat/conf/routes
Listening on port 59467...
2012/09/24 22:07:30 template.go:119: Refresh

from revel.

robfig avatar robfig commented on May 8, 2024

Ah, I think I might have already fixed the issue you are running into. Try pulling the latest code.

Right now I have an Ubuntu server up on EC2 that seems to be working:
http://ec2-107-20-33-134.compute-1.amazonaws.com:9000/

Please reopen if pulling the latest doesn't resolve it.

Thanks!

from revel.

XULRunner42 avatar XULRunner42 commented on May 8, 2024

pulled the latest code and rebuilt revel binary on FreeBSD, same result at least with android browser and android chrome. i will reopen if I get the same result later on debian and some real browsers, but at least anecdotally, andbang.com works in Android browser, which demands web socket support

i can report that sqlite and bcrypt stuff works in the booking sample on FreeBSD, but I had to go get it explicitly, not sure why... that might be expected behavior

from revel.

robfig avatar robfig commented on May 8, 2024

Did you do "go get" or "git pull"? Note that "go get" does not pull the latest code by default -- you need the '-u' parameter.

"git head" in the revel directory should give you "48c46d2 (3 days)"

from revel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.