Closed buschtoens closed 12 years ago
stream = new Stream();
Needs to be:
stream = new Stream("Stream name here!");
I left the old constructor in for binary backwards compatibility, but it won't actually function.
You also may need to change Stream
to include this:
public Stream(String name) {
super(name);
}
Thanks. I'll update the wiki accordingly. But isn't this all redundant? Why can't we give the name only once?
I'm fairly certain if you don't create that constructor in the subclass that the super constructor is called implicitly.
A new jsonapi.getStreamManager().registerStream(JSONAPISteam)
perhaps?
@silvinci Thanks. I needed to be able to tell which stream stream messages came from when I listened to the event for all messages when I added the ability for the server to push streams to a HTTP endpoint.
@Psithief That might be true, I just have hazy memories of the Java compiler complaining about something when I didn't. I am probably wrong though.
I try to initialize a stream, but get this error:
I use this (stripped down) code: