package ccf.transport

import ccf.operation.Operation
import ccf.messaging.ConcurrentOperationMessage

object Event {
  case class Ok()
  case class Error()

  case class Join(clientId: ClientId, channelId: ChannelId)
  case class State[T](clientId: ClientId, channelId: ChannelId, state: T)
  case class Quit(clientId: ClientId, channelId: ChannelId)
  case class Sync(clientId: ClientId, channelId: ChannelId)
  case class Msg[T <: Operation](clientId: ClientId, channelId: ChannelId, msg: ConcurrentOperationMessage[T])
}

Introduce events for transport actors
Introduce events for transport actors

These events should be transported from the client site to the server
using application-specific transport mechanisms.

Signed-off-by: Aki Saarinen <2c8035bb80cf98a391872dcbe797b269d759f6d9@reaktor.fi>
