Hi everyone,
Actually i was trying to handle a Web Socket message for base64 encoded
string of 10mb file.but unable to handle it.
is there any way to handle large message please suggest ?
Here is the code:
def mediaUploadHandler: Flow[Message, Message, _] = {
val (accountSource, accountQueue) = sourceQueue
Flow[Message]
.collect {
case TextMessage.Strict(txt) ⇒ {
logger.info(s"${phoneNumber}: Got the request. Now
redirecting to account api !!!!!!!!")
val userProfile = parse(txt).extractOpt[UserProfileJson]
println("user profile is ", userProfile)
}
case _ => TextMessage(INVALID_ACTION)
}
.via(connectSource(accountSource)) // ... and route them through the
receiveNotification ...
.map {
case msg: String ⇒ {
info(s"Huhh !! Why I am getting this message ${msg}")
TextMessage.Strict(msg)
}
}
}
Thanks in advance!
--
>>>>>>>>>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.