Support `socket_action` interface.