chanan / signalj Goto Github PK
View Code? Open in Web Editor NEWA port of SignalR ideas to PlayFramework and Akka
A port of SignalR ideas to PlayFramework and Akka
{"R":true,"I":"0"}
{"S":{"username":"test"},"I":"0"}
When that happens the client is getting undefined.
Need to check SignalR for correct message orders.
Hello,
My question is that SignalJ can be used with Android SignalR client? I'm trying to connect to a server imlemented by signalj example(which is work fine from browser) but i'm having trouble.
So with a correct configuration is it possible to use SignalJ with SignalR client?
Thanks in advance.
Adrian Bukros
[email protected]
Currently, getting the hub class from outside the hub via GlobalHost only works in the sample app due to class loader issues.
Adding a plugin class will allow access to the parent application which has a classloader property. This may solve the issue.
java.util.ConcurrentModificationException
at java.util.HashMap$KeySet.forEach(HashMap.java:931)
at signalJ.services.GroupsActor.lambda$null$9(GroupsActor.java:33)
at signalJ.services.GroupsActor$$Lambda$65/1485570018.accept(Unknown Source)
at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1540)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at signalJ.services.GroupsActor.lambda$new$10(GroupsActor.java:32)
at signalJ.services.GroupsActor$$Lambda$7/1062757933.apply(Unknown Source)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21)
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:118)
at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:165)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:166)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:166)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:47)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Does SignalR have a Describe function?
If sp, enable it
If not, remove the code from SignalJ
Code that was left over from before 0.3.0 needs to be removed.
Does SignalR have client side groups?
If so, enable.
If not, remove from SignalJ
Will surely be a good way to federate users. With a simple example using Springboot and Thymeleaf it would be perfect.
Class.forName is called in hubsdescriptor without a classloader
$.connection.hub.qs = { 'version' : '1.0' };
public class ContosoChatHub : Hub
{
public override Task OnConnected()
{
var version = Context.QueryString['version'];
if (version != '1.0')
{
Clients.Caller.notifyWrongVersion();
}
return base.OnConnected();
}
}
For example:
"The .done callback method is executed after the connection has been established, and after any code that you have in your OnConnected event handler method on the server finishes executing."
Host the SignalR Javascript
Check into minification
Maybe...
Hi,
The SignalJ doesn't work under play 2.5.0 for me. Do you have updated version or do you plan to upgrade the SignalJ ?
Thanks,
Laci
JS:
contosoChatHubProxy.state.userName = "Fadi Fakhouri";
contosoChatHubProxy.state.computerName = "fadivm1";
Server:
public void NewContosoChatMessage(string data)
{
string userName = Clients.Caller.userName;
string computerName = Clients.Caller.computerName;
Clients.Others.addContosoChatMessageToPage(message, userName, computerName);
}
Will need to implement as a hasmap
Error: minHubResponse.E,
StackTrace: minHubResponse.T,
ErrorData: minHubResponse.D
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.