-
Notifications
You must be signed in to change notification settings - Fork 111
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
Browser socket.io-stream #14
Comments
Could you give me your code? |
There are 2 files attached to this message.
[ upload.html ] START
src="/socket.io/socket.io.js"></script>
END [ ioserver.js ] START var startIOListener = function() {
} startIOListener(); Thanks in advance. ------ Original Message ------
|
Sorry for the late reply. Did you expose the file to a public directory like the following?
|
my web server was not configured properly. working fine now, thanks! --- Original Message --- From: "nkzawa" notifications@github.com Sorry for the late reply. Did you expose the file to a public directory like the following?
See: https://github.com/nkzawa/socket.io-stream#browser Reply to this email directly or view it on GitHub: |
it showing browserify:command not found when i'm run this command in terminal browserify index.js -s ss > socket.io-stream.js |
Hello, I'm trying to use socket.io-stream in a browser to upload a file. However, I keep getting this error, in the file change event.
"Uncaught ReferenceError: ss is not defined "
Am I missing something obvious? Please help.
Thanks in advance.
Here is the html source:
<script type="text/javascript" src="/socket.io/socket.io.js"></script> <script type="text/javascript" src="/js/socket.io-stream.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script> $(function() { $('#file').change(function(e) { var file = e.target.files[0]; var stream = ss.createStream();The text was updated successfully, but these errors were encountered: