forked from unconed/TermKit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can I start termkit in a server, and use chrome browser to access it from another machine?
just tested install it in a debian(without X), and access it from chrome in a windows machine. but I can get only a black screen, no more content show up.
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose you could. I will test in a bit.
In the meantime, you can check a few things:
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep I found the cause. The address of the node daemon was hardcoded in the client code to
localhost:2222
. This is necessary when webkit is running in a native app because then it doesn't load its file through the webserver.However, when loaded in a browser, socket.io default to the same host and address that the page is at.
A push is comming.
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the jsonp error message is socket.io trying every transport method it knows from Websocket to jsonp polling (jsonp is the last) since it's not even the right host (localhost) none of them work.
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix is there
6057aca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works pretty fine now, thanks Floby.