Comments (9)
if eureca code is run in your server machine then /eureca.js should be accessible from client machine.
what does the browser console say about it ?
can you show your client/server codes ?
from eureca.io.
Absolutely, thank you for the help.
Server code: (app.js)
//============================================
// Copied directly from http://eureca.io/ homepage first example.
//=====================================================
Client code: (index.html)
//============================================
<!doctype html>
<html class="no-js" lang="">
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<script src="https://code.createjs.com/easeljs-0.8.1.min.js"></script>
<script src="/eureca.js"></script>
<script src="./js/Button.js"></script>
<script src="./js/Card.js"></script>
<script src="./js/PlayerState.js"></script>
<script src="./js/easelInit.js"></script>
</head>
<body onload="init();">
<script>
var client = new Eureca.Client();
client.ready(function (serverProxy) {
serverProxy.hello();
});
</script>
</body>
</html>
from eureca.io.
do you see any error in the browser console ?
find eureca.js in the networking tab of the browser console, it should tell you if the script is loaded or not.
from eureca.io.
It loaded. All my other javascript files (which previously worked) are now 404, not found.
from eureca.io.
there are chances that you have something wrong in the server or client side.
this is not related to eureca but to your network.
try to run the application in a local server first.
from eureca.io.
Yes. I got it working. Thanks for your help.
from eureca.io.
welcome :)
from eureca.io.
I get the same error. I've a normal node.js/express server installed.
Here my server code :
var app = require('../app');
var debug = require('debug')('eureca.io:server');
var http = require('http');
var Eureca = require('eureca.io');
var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);
var server = http.createServer(app);
// eurecaServer init
var eurecaServer = new Eureca.Server();
eurecaServer.attach(server);
on client side :
load file : src="/eureca.js"
var rpcClient = new Eureca.Client();
I get always 404 in my browser.
I've tried also {transport: 'sockjs'} but i get the same error.
Please, can you help me ?
from eureca.io.
Hi @amytilly , if you are getting 404 errors, this is mostly related to your server or network setup.
eureca.io don't setup its own server, it use an existing one.
if you disable all eureca.io stuff, are your static files accessible ?
from eureca.io.
Related Issues (20)
- Cannot install to read-only directory. HOT 2
- Request: -quiet option HOT 2
- Strange issue when calling client methods from server HOT 3
- Use Promises? HOT 3
- Multiple Async callbacks HOT 2
- Pack client side javascript HOT 3
- WebRTC not working? HOT 2
- eureca.io with typescript HOT 1
- I want to detect Eureca Server Status on Client Side. HOT 8
- Will this work behind load balancer? HOT 3
- WebRTC problem HOT 16
- v0.7.1 not compatible with v0.6.42 on signatureId HOT 1
- How return a promise HOT 3
- cannot connected to server when integrated with docker swarm HOT 1
- Look forward to a new version
- Heroku compatibility issues - should I use strict or not? HOT 1
- 'connectionRetry' was not trigger
- Type Error
- Desynchronization on long-running calls
- got this error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eureca.io.