org.mashupbots.socko.routes
Matches the host of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using segment patterns.
For example, to match server1.sockoweb.com, use:
server1.sockoweb.com
val r = Routes({ case HostSegments(server :: "sockoweb" :: "com" :: Nil) => { // server will be set to server1 ... } })
Matches the host of org.mashupbots.socko.events.EndPoints in org.mashupbots.socko.events.SockoEvents using segment patterns.
For example, to match
server1.sockoweb.com
, use: