org.mashupbots.socko.routes
Matches the host of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using regular expression.
For example, to match www.sockoweb.com, first define your regex as an object:
www.sockoweb.com
object MyHostRegex extends HostRegex("""www\.([a-z]+)\.com""".r)
Then, when defining your Route:
val r = Routes({ case MyHostRegex(m) => { assert(m.group(1) == "sockoweb") ... } })
Matches the host of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using regular expression.
For example, to match
www.sockoweb.com
, first define your regex as an object:Then, when defining your Route: