Re: [akka-user] Bug in akka.http.javadsl.server.directives.WebSocketDirectives?

2016-05-30 Thread Akka Team
This seems to be an oversight in the API, please file a ticket (and if
possible a PR) about it. The materialized type should be Any (Object seen
from the Java side) as it is not really passed on anywhere or consumed by
anything.

-- 
Johan

Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Bug in akka.http.javadsl.server.directives.WebSocketDirectives?

2016-05-19 Thread Qux
Hi,
 

I want to use the WebSocketDirectives in Java.

Is it intended that  handleWebSocketMessages needs an handler of typ 
Flow[Message, 
Message, T],

but handleWebSocketMessagesForProtocol an hander of typ Flow[Message, Message, 
Any]?


Because of that I can not use handleWebSocketMessagesForProtocol, because of an 
CompilerError: 


Error:(49, 71) java: incompatible types: 
akka.stream.javadsl.Flow
 cannot be converted to 

 
akka.stream.javadsl.Flow



Thanks for your help!


-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.