Convert socket to coffee