More information needed.
Physical damage could be cosmetic, functional (will not hold/support the cable), or connectivity - no optical connection possible.
Do you know how the optical socket was broken: someone tripped/pulled the cable, the wrong connector was forced in, etc.?
The repair/ repair options likely depend on the cause of the damage: a pull or yank, a hard push while attempting a connection.
For example, the connection might work but only if someone hold the cable in place.....
Are you able to take a couple of close up photographs of the socket and plastic cable retainer?
Post here via imgur (
www.imgur.com).