waltz-controls / magix-war-plugin Goto Github PK
View Code? Open in Web Editor NEWWaltz-Controls Magic Box war plugin
License: MIT License
Waltz-Controls Magic Box war plugin
License: MIT License
Add RSocket subscriptiion endpoint
Currently Magix sends out all messages through SSE ignoring client preferences. As for now client Magix API implementation is responsible for filtering out messages by channel (event type in SSE). See RFC-2 and JS implementation
We can improve bandwidth usage a bit if during subscription to SSE endpoint client sends a list of desired ogrigin
s it wants to listen.
While Magix MUST simply drop messages from non-desired origin
s. See Magix implementation
Rough implementation:
@GET
@Path("/subscribe")
@Produces(MediaType.SERVER_SENT_EVENTS)
public void getStream(@Context SseEventSink sink, @QueryParam("origin", default = Empty) List<String> filters) {
logger.debug("Subscribing new client...");
broadcaster.register(sink, filters);//implement broadcaster wrapper
}
//in broadcaster.broadcast
if Incoming message.origin is in client origins - send, otherwise ignore
And the request:
GET http://localhost:8080/magix/api/subscribe?origin=tango&origin=data_forge
Pros
Cons
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.