You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do it as your introduce on the README to browserify. But When I reference it with src = '/js/socket.io-stream.js' or 'socket.io-stream/socket.io-stream.js', My browser complain that can't get the resource.
note: I start my server with node app.js.
var app = require("express")();
var http = require("http").Server(app);
var io = require("socket.io")(http);
var fs = require("fs");
//var ss = require("socket.io-steam");
var sockets = {};
app.get("/", function (req, resp) {
resp.sendFile(__dirname + "/view/message.html");
});
http.listen(3000, function () {
console.log("listening on 3000");
});
The text was updated successfully, but these errors were encountered:
I do it as your introduce on the README to browserify. But When I reference it with src = '/js/socket.io-stream.js' or 'socket.io-stream/socket.io-stream.js', My browser complain that can't get the resource.
note: I start my server with node app.js.
var app = require("express")();
var http = require("http").Server(app);
var io = require("socket.io")(http);
var fs = require("fs");
//var ss = require("socket.io-steam");
var sockets = {};
app.get("/", function (req, resp) {
resp.sendFile(__dirname + "/view/message.html");
});
http.listen(3000, function () {
console.log("listening on 3000");
});
The text was updated successfully, but these errors were encountered: