- add back onAccept and onDisconnect for non-Linux platforms