Closed lkaihua closed 5 years ago
def protocol(roomUsers: Set[ActorRef], msg: String):Unit = { Messenger.broadcast(roomUsers, msg) }
Messenger is not defined. Would you please tell me how to import Messenger trait/object?
Messenger
[info] Compiling 1 Scala source to D:\Github\heimdallr\target\scala-2.12\classes ... [error] D:\Github\heimdallr\src\main\scala\chat\protocol\DefaultStringProtocol.scala:24:5: not found: value Messenger [error] Messenger.broadcast(roomUsers, msg) [error] ^ [error] one error found [error] (Compile / compileIncremental) Compilation failed
Above error is from sbt compilcation result.
Thank you in advance!
@edwardyoon When this line is removed, the demo compiles and works. Is it something redundant?
@lkaihua Thank you for your confirmation. Fixed it !
Sorry for inconvenience to you. Fixed.
Messenger is not defined. Would you please tell me how to import
Messenger
trait/object?Above error is from sbt compilcation result.
Thank you in advance!