Comments (6)
Hey,
I'm definitely interested in having requirejs support. There's already some module bootstapping code that should make importing easier but I can see that the require
statements become an issue for requirejs support. There are some issues how ever.
- It shouldn't break Node.js support as the
primus.js
is also ran on the server. - It shouldn't break browserify support.
- There are
require
statements in the client code from the Transformers as well. There isn't really a nice way to get around those I imagine. - Engine.IO is build with componentjs which uses it's own
require
code so that will probably clash with requirejs as well.
from primus.
See docpad/docpad-plugin-livereload#5 (comment) for how DocPad users are getting over this
from primus.
@balupton I've got Primus in my require.js shim config. But the issue is that for some reason, the try/catch is throwing an error that isn't actually being caught. I checked the thread you linked to, but I'm not sure I see the answer, could you elaborate?
from primus.
By loading the Primus stuff before the require.js library?
from primus.
Could 06eae1a be a fix for this?
from primus.
I'm going to close this with the assumption that the commit referenced above fixed it. If this is not the case or if there happens to be a regression, feel free to re-open or give me a heads up about it.
from primus.
Related Issues (20)
- Primus->diagnostics->storage-engine forces --unsafe-perm in global install HOT 4
- update documentation to be more explicit around createSocket
- Problem using proxy with primus client side
- Nativescript support HOT 1
- Does the primus web client work with a non-primus websocket server? HOT 4
- How can I know if a connection has been upgraded or not? HOT 4
- import primus client in client JS
- Getting response headers while polling HOT 3
- public connections and connected HOT 1
- Consider to rewrite without prototype pollution? HOT 11
- Primus with Koa and websockets transport HOT 3
- Can you please consider changing "Primus, the creator god of transformers" HOT 3
- primus doesn't accept custom path with engine.io HOT 10
- async plugins support HOT 8
- support of the new uwebsocket version
- Allow Primus instance to select version of transformer/engine library
- Server Side Events (SSE) source HOT 7
- Maximum Concurrent Connection on Primus Server HOT 2
- Consider alternative to deprecated navigator.userAgent getter. HOT 1
- __name is not defined HOT 1
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 primus.