Fruit code moved to sock.js